Jump to content

foreach question.


Lamez

Recommended Posts

I have a multiple checkbox page. I have handled these before, well. However, this time I am getting a strange error.

 

Here it is:

Warning: Invalid argument supplied for foreach() in C:\wamp\www\TheSportZone Store\admin\manageAdmin.php on line 10

 

Here is Line 10:

foreach($_POST['del'] as $id){

 

Entire foreach body:

		foreach($_POST['del'] as $id){
			mysql_query("DELETE FROM ".TBL_ADMINS." WHERE id = '$id'");
		}

 

Any ideas? I have done this before, as such, and it worked well.

Link to comment
https://forums.phpfreaks.com/topic/201789-foreach-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.