The T_ELSE error came about because I left out a closing curly brace at the end of the inner "else" statement
PHP Code:
else {
die("The procedure died while trying to add credits. Following is the error that was generated:\n\r".mysql_error());
}
else {
die("The procedure died while trying to retrieve information from the database. Following is the error that was generated:\n\r".mysql_error());
}
should be:
PHP Code:
else {
die("The procedure died while trying to add credits. Following is the error that was generated:\n\r".mysql_error());
}
}
else {
die("The procedure died while trying to retrieve information from the database. Following is the error that was generated:\n\r".mysql_error());
}