Catch up on stories from the past week (and beyond) at the Slashdot story archive


Forgot your password?
Slashdot Deals: Cyber Monday Sale! Courses ranging from coding to project management - all eLearning deals 25% off with coupon code "CYBERMONDAY25". ×

Journal CyberKnet's Journal: PHP and Databases 3

Currently the new site is going to be using a MySQL back end, php middle-ground and apache serving up the pages.

I have found a multitude of very reliable, very helpful PHP/MySQL tutorials. The problem is that every tutorial uses the mysql_* functions. This is fine right now, but it's entirely possible that I might switch to postgresql/MSSQL/etc some time in the not-too-distant future if I have to change my hosting company.

I can write my own wrappers without too much difficulty (I think)... but is there a built-in or pre-rolled perl-like DBI for php? Not like as in syntactically, but like as in universal regardless of database?

Thoughts appreciated.

This discussion has been archived. No new comments can be posted.

PHP and Databases

Comments Filter:
  • Check out ADOdb [] when you have the chance. I've never worked with it, but it's what PostNuke uses for their database interaction, it is extremely portable (as you can see on their page) and it has been around long enough that most of the bugs have been worked out, as far as I can tell.

Machines certainly can solve problems, store information, correlate, and play games -- but not with pleasure. -- Leo Rosten