$sql = "INSERT into links VALUES ('$lname','$ldesc','$lurl')";
$sql_result = mysql_query($sql,$connection) or die ( mysql_error() );
echo('Data inserted corectly');
mysql_close($connection);
if i do INSERT into links (column1,column2,column3)
i will get an error message:
You have an error in your SQL syntax near 'desc,url) VALUES ('awef','awefwww','waefwaf')' at line 1
HOWEVER, if i simply do INSERT into links without the columns listed (as abvove), the data inserts without a problem.
what's the problem?