hi all i want to store the error of mysql_error()
in a variable. i was trying the following:
$alert_error = "<script type=\"text/javascript\"> alert('".mysql_error()."') </script>";
$id =5;
$query = mysql_query("DELETE FROM abc WHERE id ='$id'") or die ($alert_error);
actually my there is a foreign key constraint so when i click to delete it the mysql_error()
display an error but i want overwrite that error using alertbox()
.