The following code loops through a multidimensional array, printing the
subject heading and then the strand:
foreach( $strandx as $subjectx=$strandy )
{
print lib.$subjectx./b.br /\n;
print ul\n;
asort( $strandy ); // sorts the strands
foreach( $strandy as $str )
{ print li;
The following code loops through a multidimensional array, printing
the
subject heading and then the strand:
foreach( $strandx as $subjectx=$strandy )
{
print lib.$subjectx./b.br /\n;
print ul\n;
asort( $strandy ); // sorts the strands
foreach( $strandy as $str )
{ print li;
. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 02, 2003 1:28 PM
To: 'Peter Gumbrell'; [EMAIL PROTECTED]
Subject: RE: [PHP] selecting from an array based on form content
The following code loops through a multidimensional array, printing
the
subject heading and then the strand
:08 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] selecting from an array based on form content
Thanks for the suggestion, John. When I implement your code, however,
I
get
an error saying
Warning: Invalid argument supplied for foreach() in
home/student/peter/public_html/week4.php on line 153
and
Probability'));
Peter Gumbrell
[EMAIL PROTECTED]
-Original Message-
From: John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 02, 2003 2:50 PM
To: 'Peter Gumbrell'; [EMAIL PROTECTED]
Subject: RE: [PHP] selecting from an array based on form content
Where do you define
5 matches
Mail list logo