I've had a bit of a look around, and tried a few things, but I can't seem to get this to work... Can anyone help?
<?php $con2 = mysql_connect("localhost","root",""); mysql_select_db("tester",$con2); $na = $_GET["name"]; $idea = $_GET["idea"]; //echo $na; //echo $idea; $ideas = mysql_query("SELECT ideas FROM birthdays WHERE name = '$na'")or die(mysql_error()); echo $ideas;
It works fine if I use a fixed value instead of the variable..
I know it'll be something stupid, but I've been stuck on this for a while now
Any help much appreciated