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 AMiR GHolami  >  WG DB Class  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: WG DB Class
Simple MySQL database access wrapper
Author: By
Last change:
Date: 6 years ago
Size: 382 bytes
 

Contents

Class file image Download
<?php
include('class_wgdb.php');

$dbhost 'localhost';
$dbusername 'root';
$dbpassword '';
$databasename 'test';

$db=new WGDB();
if(!
$db->connect($dbhost,$dbusername,$dbpassword)) die('conn. error'.mysql_error());

if(!
$db->select_db($databasename)) die('db. error'.mysql_error());

/*.... INSERT CODES .................................................*/

?>