Please help me out !
I'm trying to run the following piece of code:
$querystr = "DELETE FROM ordertemp;".
$result = @( $querystr, $link );
if( !$result ){
mail( "root@pc02.local", "MySQL error",
"There was an error in page \"$PHP_SELF\": (".mysql_errno().") ".mysql_error()."\nquery: $querystr", "" );
die( "Internal Error." );
}
Basically it should delete the records in a MySQL table "ordertemp", but I $result is FALSE and I get the error 1065 Query was empty ...
I just don't understand it. In the same page I do insert some records and it works, but I can't delete them.
Any advice would be much appreciated.
Thanx