I have set up a MySQL db for my website however, there seems to be a problem with my code.. How could I send this problem into a log file to see exactly what is wrong, as this is what I have been told to do.
Would it be possible if someone could coach me through step by step. Or is there something wrong with my code.
Code: Select all
$sql="INSERT INTO tblmytbl (field1, field2) VALUES('".$field1."','".$field2."');";
$result_sql = mysql_query($sql) or die("Cannot perform insert tblmytbl query");