Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2008-05-17 09:04
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();
?>