saghir69
03-27-2005, 04:46 PM
Hi
I am using this code to send hits to other sites
header ('Location: '.$row['myurl'].'');
it works for links like http://www.funmansion.com/html/AOL-Preferences.html
but doesn't work for http://www.anyfun.net/show.phtml?type=pics&name=kid&num=2
its not even counting the clicks for these type of dynamic links
i think the problem is here
$sql = "SELECT myurl FROM table where myurl='".$site."'";
$site is a variable that is passed to this page through the url like this
http://www.are-you-bored.com/hitsout.php?site=http://www.anyfun.net/show.phtml?type=pics&name=kid&num=2
the database field myurl contains the same text as $site
but it don't think the script see's $site = myurl maybe because there are numbers in the string.
the myurl field type is tinytext in the mysql db
can someone help me with this?
maybe if i declare them both as plain text?
but i don't know how to do it so please help.
thanks
I am using this code to send hits to other sites
header ('Location: '.$row['myurl'].'');
it works for links like http://www.funmansion.com/html/AOL-Preferences.html
but doesn't work for http://www.anyfun.net/show.phtml?type=pics&name=kid&num=2
its not even counting the clicks for these type of dynamic links
i think the problem is here
$sql = "SELECT myurl FROM table where myurl='".$site."'";
$site is a variable that is passed to this page through the url like this
http://www.are-you-bored.com/hitsout.php?site=http://www.anyfun.net/show.phtml?type=pics&name=kid&num=2
the database field myurl contains the same text as $site
but it don't think the script see's $site = myurl maybe because there are numbers in the string.
the myurl field type is tinytext in the mysql db
can someone help me with this?
maybe if i declare them both as plain text?
but i don't know how to do it so please help.
thanks
