im using php and mysql
php code:
foreach($form1 as $value)
{
if($value!='')
{
echo $query="insert into group_mapping('mid','gid','client_id') values('$value','".$_REQUEST['gid']."','".$_REQUEST['userid']."');";
mysql_query($query);
}
}
when I run the query manually it inserts right, but using php code value of 'client_id' going (NULL), mid and gid inserting correctly.
no mysql error, i have also tried echoing the query and its fine.