Simple PHP Database Helper Class
theanti9.net
Simple PHP Database Helper Class
1–4 of 4 posts
Re: Simple PHP Database Helper Class
#2Re: Simple PHP Database Helper Class
#3Why is this voted up? It's just a wrapper of some of php's mysql_* functions.
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.
Re: Simple PHP Database Helper Class
#4Why is this voted up? It's just a wrapper of some of php's mysql_* functions.
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.