PHP Classes
elePHPant
Icontem

File: mydna.test.php

Recommend this page to a friend!
  Classes of deden fathurahman  >  mydna  >  mydna.test.php  >  Download  
File: mydna.test.php
Role: Example script
Content type: text/plain
Description: usage the class
Class: mydna
MySQL database access wrapper
Author: By
Last change:
Date: 14 years ago
Size: 247 bytes
 

 

Contents

Class file image Download
<?php
include ("mydna.class.php");

$db = new mydna;
$sql = "SELECT * FROM table_name ";
$data = $db->GetRecord($sql);
for (
$i=0;$i<count($data);$i++){
    echo
$data[$i][1]."<br>";
    echo
$data[$i][2]."<br>";
}

$db->closeConnection();
?>