Whats wrong on this code (Mysql: 4.1.21-standard)?
I get this message:
Thank you
I get this message:
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 ''title', 'desc', 'data') VALUES('Sandy Smith', '21', '24' )' at line 2
PHP:
{
mysql_connect("localhost", "username", "password") or die
('Error connecting to mysql');
mysql_select_db("news");
mysql_query("INSERT INTO news
('title', 'desc', 'data') VALUES('Sandy Smith', '21', '24' ) ")
or die(mysql_error());
mysql_close($conn);
}
Thank you





