Location: PHPKode > scripts > Connect class > connect-class/example.php
<?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>";
      }
    }
?>
Return current item: Connect class