PDO used instead legacy msqyl_ functions. Exceptions handled.
Error template.