isazi’s home

A hacker does for love what others would not do for money

isazi’s home header image

MySQL class 0.2

August 5th, 2008 · No Comments

During March I wrote a post about a simple class that I use when I need to communicate with a MySQL database in PHP 5.
Now it’s time to release version 0.2 of that class.

There are two changes from the past version:

  1. some bugs fixed;
  2. added a new method named “count“.

The new method is designed to count the occurrences of “something” “somewhere” :) so when you need to do something like:


SELECT COUNT(some columns) FROM some tables WHERE some conditions;

you can simply type (assuming you have created a $database object before):


$database->count("some columns", "some tables", "some conditions");

Enjoy :)

Download the MySQLDB class source.

Tags: Code · English · PHP 5

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment

  • RSS Shared news

  • Creative Commons license

    Metro Olografix

    hacker emblem