Jump to content

simple query, and I can't get it


nobodyk

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.