...

View Full Version : MySQL database class



arekanderu
02-27-2007, 08:07 AM
Hello

i have been searching on the forum and other places as well but i haven't found anything decent except the database class which Joomla is using.

Does anyone know if there are any decent classes out there for using them in a project which "talks" with a mysql database?

In addition, has anyone tried to use the Joomla database class? If yes, how? I know that the Joomla forums is the best place to ask this but got no answers.

Regards

meth
02-27-2007, 12:40 PM
If you can read and understand the Joomla db abstraction class, surely you can write one yourself? What's 'decent' anyway?

kenetix
02-27-2007, 02:51 PM
Try phpbb's database abstraction layer. Works for various databases like mysql, mssql, oracle, etc.

It comes bundled in all phpbb packages, and best of all its free opensource

aedrin
02-27-2007, 05:05 PM
It's not that hard to write one yourself. The bonus of that being it will do anything you want, and if a problem comes up you will know exactly how to fix it.

Fumigator
02-27-2007, 10:22 PM
Why reinvent the wheel?

I think marek_mar has written one and posted it in the PHP Scripts forum here.

arekanderu
02-27-2007, 10:36 PM
Hello all and thank you for your replies.

The problem is not the lack of coding skill to write one but like Fumigator said why waste time on something like this which is a very common thing in the PHP world instead of not using my strengths to another part of the project? Furthermore, Joomla and phpBB (thanks for this idea, never crossed my mind to use their db class) have been out quite a while and lots of people have tested it already so it's a good choice.

I've also found the script by marek_mar and i will have a look at it. It's here in case someone else is interested:
http://www.codingforums.com/showthread.php?t=99042

Oh by the way meth, by saying "decent" i meant something that has already been tested a lot and it has clean, understandable code. Sorry for that, it was the wrong word to use =)

aedrin
02-27-2007, 10:47 PM
Why reinvent the wheel?

When that wheel is square, I prefer to reinvent it.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum