Hi,

> $array = array();
> $results  = mysql_query( $sql, DB::connect() );
> while($data = mysql_fetch_array($result))
> { $array[] = $data; }
> 
> return $array;
> 
> No need to loop through $data.

        Ahh, thanks for that tip.  That's much cleaner.

-Dan Joseph

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to