Hi,
I was wondering how to pass an integer value (collected from a mysql_fetch_array and is converted to $root_id) in a hyperlink I tried following:
<a href=\"view_topic.php?root_id=$root_id\">...</a>
If I use above with strings everything works fine, but passing an integer value failes everytime...
What am I doing wrong?
Thanks in advance!
It could be the way that its received in the script view_topic.php. Does this expect it to be an integer or a string?
use
<pre> <?php print_r($HTTP_GET_VARS); ?> </pre>
to see what is being passed.
I usually like to completely separate text and variables using the concatenation operator, just to be safe.
"link.php?varname=" . $varname . "....";