nobodyk Posted April 5, 2010 Share Posted April 5, 2010 It's having trouble with the variable $name If I remove $name and just use 'anything' it works perfectly. What am I doing wrong? $name = $_GET['name']; echo $name; $sql="SELECT * FROM pics WHERE uniqid='.$name.'"; $result=mysql_query($sql); $row = mysql_fetch_assoc($result); $password = $row['password']; echo $password; Quote Link to comment https://forums.phpfreaks.com/topic/197589-simple-query-and-i-cant-get-it/ Share on other sites More sharing options...
nobodyk Posted April 5, 2010 Author Share Posted April 5, 2010 Just figured it out. I had to remove the dots :-\ Quote Link to comment https://forums.phpfreaks.com/topic/197589-simple-query-and-i-cant-get-it/#findComment-1036970 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.