Hiii
can someone tell me why this code produces this error?
[php]
$one = “one”;
$two = “two”;
$three = “three”;
$query = “INSERT INTO to_do_db
.to_do_table
(description
, flags
, status
) VALUES ($one , $two , $three)”;
mysql_query($query) or die (mysql_error());[/php]
“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 ‘a test entry , Normal , Normal)’ at line 1”
I copied that INSERT INTO style from the way PHPMyadmin did it, even without the to_do_db
. in there it still doesn’t work. tried every combination of punctuation…
thanks