Jump to content

quick syntax help


phpisawesome

Recommended Posts

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

 

this is what i have currently...

 

$query_2 = "SELECT * FROM db WHERE id = " . $_SESSION['id'];

$results = mysql_query($query_2)

or die (mysql_error());

 

 

Link to comment
https://forums.phpfreaks.com/topic/185750-quick-syntax-help/#findComment-980818
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.