Suppressing Wordpress Database errors

This might only apply to 2.2.2 but hopefully not.

at the very first line of your very first piece of code in your template do this:

$wpdb->hide_errors();

If you want to, you can do it in your header file with:

global $wpdb;

$wpdb->hide_errors();

Oh god, Im so glad it’s finally over…

Sphere: Related Content

No Comments! Be The First!

Leave a Reply

64331 pages viewed, 55 today
22311 visits, 25 today
FireStats icon Powered by FireStats