PHP Classes

File: example.php

Recommend this page to a friend!
  Packages 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: 21 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>";
      }
    }
?>