On Aug 18, 2005, at 6:57 PM, Hadley Rich wrote:
It's much the same as using MySql, just replace mysql_ with pg_ i.e.
mysql_fetch_array() becomes pg_fetch_array()
You're basically right but you've omitted an important point: the
order of parameters is often different.
eg mysql_query(query_string[, connection]) vs pg_query([connection, ]
query_string).
I don't know why but it is a bit annoying as I'm about to convert a
MySQL project to PostgreSQL, and a simple search-and-replace would
have made it much less time-consuming.
BTW the reference manual on php.net looks quite good, but I've worked
mostly from a couple of good O'Reilly books. I'm still looking for a
good non-product-specific database book... any recommendations?
Cheers,
- Dave
http://www.digistar.com/~dmann/