top | item 930587

Simple PHP Database Helper Class

6 points| theanti9 | 16 years ago |theanti9.net

2 comments

order

middus|16 years ago

Why is this voted up? It's just a wrapper of some of php's mysql_* functions.

trezor|16 years ago

Not to mention it recommends sticking to escaping strings as opposed to the proper way of using prepared statements/parameterized queries.

This is trivial stuff and poorly implemented.

Only positive aspect I can see in using this class is that it abstracts away which DB is being used from the rest of the code, so that when MySQL eventually collapses on it self, you can quickly replace it with something else.