Location: PHPKode > scripts > MySQL data into array > index.php
<?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                                        
?>
Return current item: MySQL data into array