Hi. I am unable to find a solution for the following:
Language: PHP
$results = mysql_query($update)
or die(mysql_error());
I know the error will display if there is any, but I want to pass my own custom string value as a parameter in the mysql_error() function so if a error occurs I will have my own custom string value + MySQL generated error message.
I want to be more descriptive in what exactly went wrong for debugging.
How do you pass that string value parameter ?
Student Number: 78042879 (Part Time Courses)