Re: Unexpected values in an associative array[Solved]

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

 




On Jul 31, 2007, at 11:40 AM, Robin Vickery wrote:

Or don't get numeric keys in the first place:

foreach ($this->db->query($query, PDO::FETCH_ASSOC) as $row)

Robin: Bingo! That did the trick.

I knew my solution was hokey but I haven't used PDO before this project so wasn't aware of what it did behind the scenes.

Thanks everyone for the quick replies.

Ken

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux