Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of fender bender  >  DB Class Singleton  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: demo
Class: DB Class Singleton
Singleton to access SQL databases using PDO
Author: By
Last change:
Date: 2012-06-29 09:34
Size: 209 bytes
 

Contents

Class file image Download
<?php 
// singleton database class 

require_once('db.class.php');

$db Database::getInstance();
$db->query("Select * from ..."); 

// this counts number of rows 
$db->Count($tableName$condition);






?>