How to insert data into database via wordpress?
$name = $_POST['name'];$email = $_POST['email'];global $wpdb;$table_name = $wpdb->prefix . "jaspreet";$wpdb->insert($table_name, array('name' => $name, 'email' => $email) );
Share this post
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.
wpcodekit Website Designers is one of the best website designing company in punjab 2020. We create beautiful looking, fast and secure websites.We are create professional websites in punjab since 2016.