Code: Select all
$result = mssql_query($insert_sql, $dbConn);
if (!$result) {
$error=mssql_get_last_message();
email_error($insert_sql,"The insert failed for $array[server] with this id: $array[id]<br><br>$error");}
}The problem is that it still displays the error on the screen. I do not want it to exit, I want it to follow the code in the if statement and email me. Any ideas?