I would say the problem is first array. Change it to
array(
'name' => $_POST['name']
),
You can also use wpdb->show_error() or wpdb->print_error()
To Samuel Elh: wpdb->insert() can escape value itself
I would say the problem is first array. Change it to
array(
'name' => $_POST['name']
),
You can also use wpdb->show_error() or wpdb->print_error()
To Samuel Elh: wpdb->insert() can escape value itself