RE: oracle: fetch a query result into an array

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

 



On 18 February 2004 18:22, Torsten Lange contributed these pearls of wisdom:

> 
>           while(OCIFetch($stmt))
>              {
>              $column_name = OCIResult($stmt,'COLUMN_NAME');

missing [] here -- should be:

              $column_name[] = OCIResult($stmt,'COLUMN_NAME');

>              $counter++; }

You might also want to look up ocifetchstatement
(http://www.php.net/ocifetchstatement).

Cheers!

Mike

-- 
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: m.ford@xxxxxxxxxxxxxx
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211

-- 
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