Jump to content

Please help me - syntax error


tommyda

Recommended Posts

Why would this have a syntax error?

 

im using version 4.

error: 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 'database WHERE option=paypal' at line 1

 

include'include/mysql.php';

 

$option = mysql_real_escape_string($_GET['option']);

 

 

$result = mysql_query("SELECT * FROM categories WHERE (option = '$option')")or die(mysql_error());

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/85372-please-help-me-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.