How can I test whether a delete query on any other query for that matter has been successful deleting a record. I tried below but it does'nt return if the query deleted a record.
$deletequery= "DELETE FROM details WHERE id='$line[id]'
AND orderid='$orderid'
AND location='".LOCATION."'";
mysql_query($deletequery) or die(ErrorDB($realname)) ;
$message = (!$deletequery) ? 'ERROR' : "<font color='#FF0000'>DONE</font>";
echo "$message<br>";