View Full Version : MySQL database class

02-27-2007, 09:07 AM

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.


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

02-27-2007, 03: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

02-27-2007, 06: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.

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

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

02-27-2007, 11: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:

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 =)

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

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