Re: Problem with fetching values...

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

 



> So, PostgreSQL catch the array by "name"
>
>    pg_fetch_array($db_query, null, PGSQL_ASSOC)
>
> and MySQL use the "position"
>
>    mysql_fetch_array($db_query, MYSQL_NUM)

Why?

http://www.php.net/mysql_fetch_array

Use MYSQL_ASSOC as the 2nd param, or leave it out and by default it uses BOTH.

-- 
Postgresql & php tutorials
http://www.designmagick.com/

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