lozina
Lifer
I am having trouble understanding why a database error is not getting caught by my code.
I am using PEAR for the db work and in this particular instance I am trying to select a column which does not exist. All that happens is that I get "DB Error: no such field" printed on the web browser. How do I catch this so I can handle the error and redirect to a user-friendly web page?
I am using PEAR for the db work and in this particular instance I am trying to select a column which does not exist. All that happens is that I get "DB Error: no such field" printed on the web browser. How do I catch this so I can handle the error and redirect to a user-friendly web page?