Jump to content

[SOLVED] mysql error


brem13

Recommended Posts

hey, does anyone know what is wrong with this line? i use the EXACT same line in another page and i dont have a problem

error   

Could not insert data because 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 'values ('NULL', 'breminem', 'RE:Â test123', 'rewy', 'New', '2009-03-29 16:41:39'' at line 1

 

my database has 7 fields btw

 

$insert = mysql_query("insert into $user values ('NULL', '$username', '$sub', '$message', 'New', '$dt2', '$dt2')") or die("Could not insert data because ".mysql_error());

Link to comment
https://forums.phpfreaks.com/topic/151651-solved-mysql-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.