comment_author_email is pulling in a year
-
function remove_comments_left($comment_author_email) { global $wpdb; global $default_comments_allowed; $table_name = $wpdb->prefix . "gatornet"; $wpdb->query("INSERT INTO ".$table_name." (email, comments_left) VALUES ('".$comment_author_email."', '".$default_comments_allowed."' )"); } add_action('comment_post', 'remove_comments_left');
I was trying to do some testing but this has me stumped. I am trying to add an email address to a database table when a comment is submitted. $comment_author_email is submitting “2010”, “2011”, “2012” in the database and so on. Any help to resolve this would definitely be helpful!
- The topic ‘comment_author_email is pulling in a year’ is closed to new replies.