Hello all,
This may or may not be a PHP problem but it seems to be. I'm running PHP5 and Postgresql 7.4 on a Red Hat server. I'm making a database query (a rather complex one at that) which returns a recordset containing foreign key names. Here's the problem, when I run the query directly in the Postgresql database, the recordset returned looks fun. But when I run the same query in PHP, it returns the first foreign key twice. I.E. I toss the recordset into an array using pg_fetch_array, then use the foreach function to run through each item one at a time. But it ends up that I get a duplicate pair of the first entry. Has anyone seen this sort of error before? Perhaps it's a bug in PHP5?
Thanks,
Jisoo23
This may or may not be a PHP problem but it seems to be. I'm running PHP5 and Postgresql 7.4 on a Red Hat server. I'm making a database query (a rather complex one at that) which returns a recordset containing foreign key names. Here's the problem, when I run the query directly in the Postgresql database, the recordset returned looks fun. But when I run the same query in PHP, it returns the first foreign key twice. I.E. I toss the recordset into an array using pg_fetch_array, then use the foreach function to run through each item one at a time. But it ends up that I get a duplicate pair of the first entry. Has anyone seen this sort of error before? Perhaps it's a bug in PHP5?
Thanks,
Jisoo23