Iam trying to insert Array data (ie., checkbox values) into Mysql db (using Phpmyadmin)
when I try to store, iam getting as 'Array' for the field "forms" in db..
please someone tell me what changes I have to do for the below code, so I can store all the array values (seperated with commas in my db)
here is the code:
if(isset($_POST['forms']) && $_POST['forms']!=''){
$table = $wpdb->prefix . "eshop_orders";
$forms=$wpdb->escape($_POST['forms']);
$query1=$wpdb->query("UPDATE $table SET forms='$forms' where checkid='$checkid' limit 1");
}
waiitng for replies..