Hello Sir i am pass array list through url android to php
my arraylistvalues[x,y.z,....]
this all values inserted into single column(menuname) in test table to mysql using php
i tried this
$a=$_POST['menuname'];
mysql_connect("localhost","root","MobixMySQL");
mysql_select_db("test");
foreach($a as $value)
{
mysql_query("INSERT INTO test (menuname) VALUES $value)")or
die ('unable'.mysql_error());
echo "Inserted";
}
i try above php it shows error valild argument in foreach please tell me how to solve ..please help me