On 3/12/07, Rick Shelton <[EMAIL PROTECTED]> wrote:
I currently have PHP installed with PostgreSQL support. I need to fast-track a project. The fastest way is to follow examples from a book using PHP and MySQL. Are there any differences between writing complex PHP code for MySQL and PostgreSQL? Or should I just install MySQL and reinstall PHP? thanks ~rick
It differs only in PHP code, as you need to use pg_query for PostgreSQL and mysql_query for MySQL. If you want to move to Mysql later, I recommend making a new function for it, like function $(sql) { return pq_query($sql); } and if you change to mysql, you only have to replace that function. Of course you could also replace all commands at once with a program, Tijnema
-- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
-- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page