Re: [PHP] accessing data from an array within an array.

2011-05-07 Thread Adam Preece
rray['row'] > > Foreach($array['row'] as $key=>$values) > { > Echo $values.PHP_EOL; > } > > > > > Richard L. Buskirk > > -Original Message- > From: Adam Preece [mailto:a...@blueyonder.co.uk] &g

RE: [PHP] accessing data from an array within an array.

2011-05-07 Thread admin
OL; } Richard L. Buskirk -Original Message- From: Adam Preece [mailto:a...@blueyonder.co.uk] Sent: Saturday, May 07, 2011 11:37 AM To: php-general@lists.php.net Subject: [PHP] accessing data from an array within an array. hello all. im trying to make a functio

[PHP] accessing data from an array within an array.

2011-05-07 Thread Adam Preece
hello all. im trying to make a function that fetches all rows in the database and stores each row (Array) within an array. so the code is as follows: public function fetch_all($table_name,$order = "DESC"){ $array['row'] = array(); strtoupper($ord