Jump to content

SQL syntax error


techiefreak05

Recommended Posts

i need to select something for the database where the image id is a certain thing and the user id is a certain thing .. and IDK the correct syntax for checking the table against 2 things .. herees my code.. and it doesnt work

[code]
$sql = "SELECT * FROM `imageHeadlines`  WHERE `userID` = '$_SESSION[id]', `id` = '$imgID'";
[/code]
Link to comment
https://forums.phpfreaks.com/topic/28404-sql-syntax-error/
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.