function rssmart_book_add_customer() { global $wpdb; $table_name = $wpdb->prefix . 'rssmart_customers'; $data = $_POST['data']; parse_str($data, $form_data); $wpdb->insert($table_name, array( 'name' => $form_data['name'], 'address' => $form_data['address'], 'contact_number' => $form_data['contact_number'], 'email' => $form_data['email'] )); echo rssmart_book_get_customers(); wp_die(); } add_action('wp_ajax_add_customer', 'rssmart_book_add_customer'); Hello world! – rssmartbook.com

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

1 thought on “Hello world!”

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top