PHP Classes

File: index.php

Recommend this page to a friend!
  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: 14 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
?>