Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of riccardo castagna  >  MySQL data into array  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: example
Class: MySQL data into array
Create and retrieve data from a MySQL table
Author: By
Last change: updated
Date: 4 years ago
Size: 438 bytes
 

Contents

Class file image Download
<?php
include_once('config.php');
include_once(
'class.MySqlConvert.php');
$ref=new MySqlConvert;
$ref->dbHost=$dbHost;
$ref->dbUser=$dbUser;
$ref->dbPass=$dbPass;
$ref->dbName=$dbName;
$ref->connessioneDb(); //connect , create a db, select db
$ref->country(); // create table, insert data into table, select data from table, trasform into array and print
$ref->destroydb(); // drop db                                        
?>