Where ever the problem is in your case for now, the strongly suggested that you always use at least mysql_error() after some query execution specially when you are in development phase.
PHP Code:
mysql_query("INSERT INTO tblename (field1,field2) VALUES('value1','value2')") or die(mysql_error());
So that mysql_error() function will terminate (the function die()/exit() will terminate the script) and will give the reasonable error message to you and you can understand what is happening.
If the error is Fatal then it will automatically terminate the flow, otherwise if you don't want to terminate the script and just want to see the error/warning messages then simply you can echo the error/warning message.
PHP Code:
$result = mysql_query("INSERT INTO tblename (field1,field2) VALUES('value1','value2')");
if(!$result){
echo mysql_error();
}
Bookmarks