I am quite new to php. I need to pass parameters to URL dynamically. I using following code to test and it is giving error.
echo "<a href=statepage.php?st=$ID>$name</a><br><hr>"
I know there is something wrong with the syntax but i checked this and did not find the problem.
Thanks.