save files to database wordpress code example
Example: wordpress query to save in database
$_POST['yourname'],
'emails' => $_POST['customer_email'],
'gender' => $_POST['customer_gender'],
'age' => $_POST['customer_age']
);
//echo ""; print_r($data);
$success=$wpdb->insert( $table, $data );
if($success){
echo 'data has been save' ;
}
} else {
echo "data not save";
}
?>