PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Tamas Hernadi   Datamodul   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: test
Class: Datamodul
MySQL database access wrapper
Author: By
Last change:
Date: 16 years ago
Size: 400 bytes
 

Contents

Class file image Download
<?php
 
include_once("class.mysql_datamodul_php5_v1.3.1.inc.php");

 
$dm = new Datamodul("localhost","root","","coffeebreak");
 
$dm->dm_info();

 
$dm->execute_sql("SELECT * FROM coffees");
 
$dm->dm_select_result_info();

 
$dm->execute_sql("SELECT c.*, c.cof_name as cname, supplier.sup_name FROM coffees c, supplier WHERE c.sup_id=supplier.sup_id");
 
$dm->dm_select_result_info();
?>