Arrow

Last insert ID - issue | Peter's Custom Anti-Spam for WordPress | Forum

Back to the custom anti-spam plugin page
 
Current User: Guest
Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Last insert ID – issue

Reply to Post Add a New Topic
UserPost

1:15 am
October 5, 2011


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.

11:37 am
October 6, 2011


Peter

Admin

posts 732

Thanks for the report. There is no pending release at the moment, but this will be noted for whenever the next one comes out.

Reply to Post

Reply to Topic:
Last insert ID – issue

Guest Name (Required):

Guest Email (Required):

HTML Editor
Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
8 + 8