0

Hi
I wrote this code and I hope that you can tell me what is wrong with it .!

$sql = "INSERT INTO offers (title,description,location,type,status,img,real,username) VALUES('".$title."','".$description."','".$location."','".$type."','".$status."','".$img."','".$real."','".$username."')";
$query = mysql_query($sql) or die(mysql_error());

The 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 'real,username) VALUES('y','qq
','aa','test1','test2','t','test3','core')' at line 1

2
Contributors
2
Replies
14
Views
3 Years
Discussion Span
Last Post by keloa
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.