Re: [PHP] Converting a MySQL result into a complex array

2003-07-21 Thread Curt Zirzow
* Thus wrote jwulff ([EMAIL PROTECTED]): > How would I take the results of the following MySQL statement and put it > into an array as follows? > > SELECT * FROM numbers WHERE type=`1`; > SELECT * FROM numbers WHERE type=`2`; > > $example_data = array( > array("1",25,8), > array("2",10,8) > );

[PHP] Converting a MySQL result into a complex array

2003-07-21 Thread jwulff
How would I take the results of the following MySQL statement and put it into an array as follows? SELECT * FROM numbers WHERE type=`1`; SELECT * FROM numbers WHERE type=`2`; $example_data = array( array("1",25,8), array("2",10,8) ); All the results of type=`1` would be in the first nested arr