Re: Unexpected values in an associative array[Solved]

From: Date: Tue, 31 Jul 2007 16:00:06 +0000
Subject: Re: Unexpected values in an associative array[Solved]
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-259929@lists.php.net to get a copy of this message
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

« previous php.general (#259929) next »