Hi guys good day,
i have a url http://www.myanis.com/edit.php?id[]=1&name[]=steve&id[]=2&name[]=aldrin
now to get this, i have to use?? foreach right? something like this??
foreach($_GET['id'] as $id){
//codes
}
and
foreach($_GET['name'] as $name){
//codes
}
and ive tried like this, to shorten the codes.
foreach($_GET['id'] as $id && $_GET['name'] as $name){
//codes
}
is this wrong???? or is there a way to to do like that the correct way.
my purpose is that to insert data in my database
foreach($_GET['id'] as $id && $_GET['name'] as $name){
//sql insert statement.
}


