Last insert ID - issue | Peter's Custom Anti-Spam for WordPress | Forum
Back to the custom anti-spam plugin page


Last insert ID - issue
October 5, 2011
1:15 am
1:15 am
Xiscu
Guest
When the plugin calls $wpdb->get_var('SELECT last_insert_id()'); always gets 0. For this reason the plugin doesn't work properly and causes the indefinitely growing of the table cas_count.
I fix this issue calling instead $wpdb->insert_id;. Could you fix this error in the next version of the plugin?
Thanks.