Im using the following php for loop to insert array values in database. I need correction to my code.I want to query out side the for loop.Please help me in correcting my code.
<?php
/*********************/
$data = $_REQUEST['columns_one'];
$store_data = explode(",",$data);
foreach($store_data as $key =>$value)
{
//echo $value;
$query = "insert into fb_savedforms(form_id,form_structure) values ('','".$value."')";
$result = mysql_query($query);
}
/**************************************/
?>