Nested foreach ?

From: Date: Sun, 17 Oct 2004 16:53:23 +0000
Subject: Nested foreach ?
Groups: php.general 
Request: Send a blank email to php-general+get-199667@lists.php.net to get a copy of this message
I have 3 arrays. 3 for 3 fields in a table (all part of 1 record) array1 - field1 array2 - field2 array3 - field3 What I've been doing which works good with one array: if ( is_array( $_SESSION['foo'] ) ) { foreach ( $_SESSION['foo'] as $x ) { sql .= "INSERT INTO TABLE (............... VALUES ($x) Just can't seem to figure out how with three arrays. help appreciated. Stuart

« previous php.general (#199667) next »