Jump to content

SQL query not working


rik72

Recommended Posts

Hi, on the upload of an image, im trying to add the image into 2 databases, one needs adding, one needs updating;

 

Im using this;

 

$sql1 = "UPDATE ".TBL_USERS." SET photo = '$pass' WHERE username = '$username'";
$sql2 = "INSERT INTO user_images (photo, username) VALUES ('$pass', '$username'";
mysql_query($sql1);
mysql_query($sql2);

 

sql1 works fine, but sql2 is doing nothing, any ideas?

Link to comment
https://forums.phpfreaks.com/topic/130108-sql-query-not-working/
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.