Beta

Slashdot: News for Nerds

×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

PHP and Databases

CyberKnet (184349) writes | more than 11 years ago

PHP 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.

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.

cancel ×

3 comments

Yup (1)

Noose For A Neck (610324) | more than 11 years ago | (#4543735)

Check out ADOdb [weblogs.com] 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.

Re:Yup (2)

CyberKnet (184349) | more than 11 years ago | (#4546316)

Exactly what I was looking for. Thanks.
How'd you come by my journal? I didn't think anyone even read this thing...

Re:Yup (1)

Noose For A Neck (610324) | more than 11 years ago | (#4551973)

Check here [slashdot.org] , Slashdot lists all current journals in chronological order. I browse it every once in a while to find interesting journal entries.
Check for New Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Create a Slashdot Account

Loading...