Shane O’Neill explains what the $error variable does:
Now ignoring the fact that you already know what is wrong, this tells me that there is either something wrong with the
$Database
variable, the$sql
variable or the syntax statement. Maybe even something else though!
This is not helpful and I’m going to have a bad time.I encountered this lately and thanks to Chrissy LeMaire ( b | t ), I was introduced to the
$error
variable.
Shane also has an interesting side note around error colors.