NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP 5 guru: help fix simple PEAR DB problem

Edward Potter ejp at well.com
Mon Feb 2 11:48:34 EST 2004


Yipes, php is beginning to look more like perl everyday!  :-)

On Feb 1, 2004, at 11:58 PM, Dan Cech wrote:
>
>   if ($fetchmode == DB_FETCHMODE_ASSOC) {
>                 while (is_array($row = 
> $res->fetchRow(DB_FETCHMODE_ASSOC))) {
>                     reset($row);
>                     $key = current($row);
>                     unset($row[key($row)]);
>                     if ($group) {
>                         $results[$key][] = $row;
>                     } else {
>                         $results[$key] = $row;
>                     }
>                 }   ..........
>

//-----------------------------------------
http://mygoo.typepad.com
http://mygoo.typepad.com/coder




More information about the talk mailing list