$wpdb->query("INSERT INTO wp_email_subscription (name, email, date) VALUES ('$name', '$email', '$date')" );
This is if you want to insert values into your table. You do not need to use $ wpdb-> email_subscription for the prefix, since this is a table that you created yourself, otherwise, if you paste the values into WordPress tables by default, you would prefer to make $ wpdb-> users, etc.
source
share