[wp-hackers] Help with wpdb Class Errors

scribu scribu at gmail.com
Mon May 11 12:39:17 GMT 2009


Why would you need another instance of WPDB (which also implies another db
connection)?

You can just add your custom table to the existing wpdb instance:

$wpdb->custom_table = $wpdb->prefix . 'custom_table';


-- 
http://scribu.net


More information about the wp-hackers mailing list