PHP DATABASE CLASS using PDO

Couple of mounths ago i relased a sample PHP5 database connecting class using the PDO object

How i can use it ?


just include or require this  PHP file Here The Php File in your project and  and use the magic class :)





/** $database = new Db();
/**
/** $database->query('SELECT FName, LName, Age, Gender FROM mytable WHERE LName = :lname');
/** $database->bind(':lname', 'Smith');
/** $rows = $database->resultset();
/**
/** echo $database->rowCount();


Comments

Popular posts from this blog

Twitter API with PHP

Realtime Chat Application with CakePHP and Socket.IO #1

Let's build a mobile application with Ionic Framework #3