I have Two Arrays i need to insert these two arrays data into database
here is my code
$LocaName=$_REQUEST['locname'];
$address=$_REQUEST['address'];
$LocaNamearray = explode("|||", $LocaName);
$addressarray = explode("|||", $address);
for($i=0;$i<count($LocaNamearray);$i++)
{
$query="insert into tbl_MapDetails(LocationName,Address)values('$LocaNamearray[$i]','$addressarray[$i]')";
$result=mysql_query($query);
}
so here i need to insert these two arrays at a time into database plz guide me
Thanks for advance.
It will be even better if you do something like that