PHP DATABASE CLASS using PDO
Couple of mounths ago i relased a sample PHP5 database connecting class using the PDO object
just include or require this PHP file Here The Php File in your project and and use the magic class :)
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
Post a Comment