is there a good reference for built-in variables that contain errors.... like my PHP doesn't throw any errors.. but is there a variable that I can put in an or die() statement that would throw the PHP/MySQL/etc errors when they do occur?
Do you mean like this?
so i could do:
...or die(E_ERROR);
I don't think the error messages are held in any accessible strings, but you could possibly mimic them with some code like the example, and use "FILE", "LINE", "FUNCTION", etc.