MySQL abstraction class

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
deeessay
Forum Commoner
Posts: 55
Joined: Sat May 24, 2008 1:02 am

MySQL abstraction class

Post by deeessay »

Hi guys, anyone can direct me to a site where there is a mysql abstraction class? or maybe you can send me a tutorial? I want to create one from scratch, that way i might understand how it works. thanks in advance!
User avatar
lonelywolf
Forum Commoner
Posts: 28
Joined: Tue Jun 10, 2008 6:15 am

Re: MySQL abstraction class

Post by lonelywolf »

If you're running php5, you can use PDO or some extensions of pdo class? It's a great abstraction database class.
User avatar
deeessay
Forum Commoner
Posts: 55
Joined: Sat May 24, 2008 1:02 am

Re: MySQL abstraction class

Post by deeessay »

unfortunately, no. our company is planning to upgrade the php on the server but not anytime soon... so it's still php4. any idea where i can find a detailed tutorial explaining every functions in the class?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: MySQL abstraction class

Post by onion2k »

ADODB and ADODB Lite both work on PHP4. They're very good.

Writing your own is a waste of time to be honest, just use one of them.
User avatar
deeessay
Forum Commoner
Posts: 55
Joined: Sat May 24, 2008 1:02 am

Re: MySQL abstraction class

Post by deeessay »

Thanks all for your help. I just might try downloading one if I still can't make one.
I just think that this is a good time as any to learn how to create my own mysql abstraction class.

Happy coding and good day!
Post Reply