Re: Using two colomns of mysql data as key/value pairs in arrays

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "David T-G" <davidtg-php@justpickone.org>

> [Actually, maybe I'm just too new at this, but I
> can't think of a practical example for which I would loop over $row...
> Care to help me out?]

How about a dynamic query where you do not know the number of columns
that'll be returned? You would not want to use _array() as you'll have the
duplicates to worry about / skip over. using _row() or _assoc() and just
looping through that will suffice.

---John Holmes...

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux