RE: [PHP] Nested foreach ?
| From: | Stuart Felenstein | Date: | Mon, 18 Oct 2004 08:37:12 +0000 |
| Subject: | RE: [PHP] Nested foreach ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199708@lists.php.net to get a copy of this message | ||
Wish I had better news.
Warning: Invalid argument supplied for foreach() in
/home/lurkkcom/public_html/TestMultiTrans2.php on line
90
INSERT INTO LurkProfiles_Skicerts (ProfileID,
SkilCerts, NumYear, Lused) VALUES ()
line 90: foreach($skills as $key => $skill)
To confirm :
I changed to this:
> // Doing this makes the code below easier to read
> $skills = $_SESSION['skills'];
> $skys = $_SESSION['skys'];
> $slus = $_SESSION['slus'];
From this :
I changed the $_SESSION['skills'] = $_POST['skill'];
$_SESSION['skys'] = $_POST['sky'];
$_SESSION['slus'] = $_POST['slu'];