> 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.
On Sun, Dec 28, 2008 at 10:41 AM, Michelle Konzack <
linux4miche...@tamay-dogan.net> wrote:
> Hello,
>
> I have to code a compatibility layer under PHP5 for PostgreSQl and
> MySQL, which mean, I have to code something like db_query() which then
> can be used with mysql_query() and pg_query
Hello,
I have to code a compatibility layer under PHP5 for PostgreSQl and
MySQL, which mean, I have to code something like db_query() which then
can be used with mysql_query() and pg_query().
But now I have hit an weird error, since in PostgreSQL it is wotking but
in MySQL it get the righ
3 matches
Mail list logo