Posted by Aaron Reimann on 10/13/55 11:42
This is kind of what I need (I think):
if (is_array($_POST['comments']['id'])):
foreach ($_POST['comments']['id'] as $id):
$insert = "INSERT INTO people (username, id_people,
id_ministry) VALUES ($_SESSION[valid_user], $people_id, $id";
$mysql_insert = mysql_query($insert, $mysql_link)
or die("Bad query: ".mysql_error());
endforeach;
endif;
[Back to original message]
|