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; 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 :-\ 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
Archived
This topic is now archived and is closed to further replies.