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 ashwin suresh morey  >  Connect  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: usage of class file
Class: Connect
MySQL database access wrapper
Author: By
Last change:
Date: 9 years ago
Size: 272 bytes
 

Contents

Class file image Download
<?php
    
require("db_connect.php");
    
$dbConn = new database();
    
$dbConn->query("select * from employee");
    if(
$dbConn->num_rows()>0){
      while(
$dbConn->moveNext()){
        echo 
$dbConn->getField("firstName");
        echo 
"<br>";
      }
    }
?>