Here is a wrapper for making database queries. It doesn't matter who the F!@k you think you are you should always wrap querying the database in your own function.
Because when you take your application to a new server, you won't have to change all the calls to mysqlquery() to pgsql_query() or $db->query() or what ever you are now using.
When you query fails you can handle that in a very nice way with a proper error screen and maybe send an email to your self.
You need to login to post a comment.