* 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)
> );
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
2 matches
Mail list logo