Does anyone see anything wrong with this? Mysql+PHP Error

gex

New Member
I'm running the following line :\[code\]mysql_query("INSERT INTO tags SET tag = '".$onesearch."', SET date = '".date('d-m-Y')."'") or die(mysql_error());\[/code\]...and its dieing saying this:\[quote\] 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 'SET date = '29-08-2010'' at line 1\[/quote\]I can't figure out what's wrong.
 
Back
Top