Colin McCann Dot Com

Custom PHP and MySQL Application Functions

Posted on September 12, 2011 at 10:27 pm

These are some custom PHP/MySQL functions that I use to speed up development as well as make the code more accessible. I find myself doing the same thing over and over and over again, and this relieves a bit of that monotony. Passing a secondary argument of 'true' (boolean) will output any errors the function may encounter; otherwise, it will fail silently.

Example Usage:

Returns the first value of the first defined field

Return a single MySQL row as an associative array

Return multiple MySQL rows as an associative array

Code
1 comment for this entry:
  1. Bheem
    Great Thanks

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...