Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ruben Sekiji Negrao Doi  >  GV Conection Class  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: An example of the class running
Class: GV Conection Class
Simple database access wrapper
Author: By
Last change:
Date: 2008-02-20 04:25
Size: 358 bytes
 

Contents

Class file image Download
<?php
# includes
include_once("conf.inc.php");
include_once(
INCLUDES_PATH."messages.php");
include_once(
"class_Conection.php");

$conn = new conection();
$sql "SELECT * FROM table";
$conn->open_conn();
$conn->executeQuery($sql);
$conn->close_conn();

# the result of the sql execution
$reg mysql_fetch_array($conn->result,MYSQL_ASSOC);

?>