Jump to content

Warning: Invalid argument supplied for foreach()


guoxin

Recommended Posts

Hi All,

 

May i know how to rectify the following php error? Thanks folks  :)

 

Warning: Invalid argument supplied for foreach() in /home/alan/do_add-user.php on line 36

 

do_add-user.php.php on line 304:

$project_array = $_POST[Project];

 

 

304        foreach($project_array as $project){

$sql3 = "INSERT INTO Mapping SET user_id='$uid', project_id='$project'";

$result3 = @mysql_query($sql3,$connection) or die(mysql_error());

 

}

 

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.