PDO ?
| From: | Jim Giner | Date: | Tue, 15 Jan 2013 17:25:28 +0000 |
| Subject: | PDO ? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-48647@lists.php.net to get a copy of this message | ||
Doing some conversion - looking for a solution.
Currently I do something like this:
while (list($var1,$var2) = mysql_fetch_array($qrslts))
{
handle the vars....
}
Is there something in the PDO functions that emulates this same ability? Some of my uses of the sql syntax have many more vars and I'm
trying to avoid having to move the fetch-ed fields one at a time to vars that I wish to use.
I already tried:
list($var1,$var2) = $qrslts->fetch(PDO::FETCH_ASSOC);
this does not populate the vars.