I am taking two comma separated values from the database from different coloumn(supplierrouteallocation:1000,1200 and routesymbol:10xx,12xx)
and i want to insert this value into the another table into the different column for example like this
route symbol
1000 10xx
1100 11xx
but i tried its not working can anyone helpme .thanks
my code
$routes = explode(",",$supplierrouteallocation);
$symbol = explode(",",$routesymbol);
$count=count($routes,$symbol);
for($i=0;$i<$count;$i++)
{
$sql_insertroute="INSERT INTO `fms`.`routestable` (
`id` ,
`route`
`routesymbol`
)
VALUES (NULL ,'$routes[$i]','$symbol[$i]')
";
mysql_query($sql_insertroute);
}