Jump to content

MySQL Query Failure Notice


c-o-d-e

Recommended Posts

I recieve this notice/error.

Notice: Query failed: 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 'By, Tutname, Tutorial, Description, Category, Subcategory, Date, IP) VALUES ('Ad' at line 1 in /home/jeanie/public_html/tutorials.php on line 173

 

Line 173 is...

$query = mysql_query("INSERT INTO Tutorials (By, Tutname, Tutorial, Description, Category, Subcategory, Date, IP) VALUES ('$by','$tutname','$tutorial','$description','$category','$subcategory','$date','$ip')") or trigger_error("Query failed: " . mysql_error());

 

It gets to VALUES ('Ad'

I assume Ad, is the start of my username. $by is defined as the logged in users usename. My username is Admin.

Whats the problem? thanks.

Link to comment
https://forums.phpfreaks.com/topic/184834-mysql-query-failure-notice/
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.