How To Use:
$MySQL = new MySQL($host, $user, $pass) // Set the Database Class
$MySQL->ChangUser($user, $pass, $db="") // Change the Database User (Unusable in some versoin of MySQL)
$MySQL->OptimizeTab() // Optimize the Tablses of Selected Database
$MySQL->ReadSqlFile($file) // Read SQL File And Send Content of the File to HandleSQL($strSQL)
$MySQL->HandleSQL($strSQL) // Split the SQL Query String into a array from a whole String (Maybe Read from a File)
$MySQL->BatchExec($ArrSQL) // Execute Multi Query from an Array (Use HandleSQL First)
$MySQL->Connect($pconnect = false) // Build a Connection to MySQL to $MySQL->DB_conn
$MySQL->SelectDB($the_db) // Select a Database of MySQL to $MySQL->DB_select (Must Build Connect First)
$MySQL->Query($sql) // Execute a Query of MySQL, Result into $MySQL->DB_resut
$MySQL->SeekData($line) // Seek Data Row in the $MySQL->DB_resut ($MySQL->DB_Qtype Must Be Setted into True Before Query)
$MySQL->GetResult($line, $field="") // The Same Use as mysql_result ($MySQL->DB_Qtype Must Be Setted into True Before Query)
$MySQL->GetRS() // Return The Current Result as an Array and Set the Point of Result to the Next Result
$MySQL->GetStat() // Get the Current Status of MySQL
$MySQL->GetDBs() // Get the Databases List of Current MySQL Server as an Array
$MySQL->GetTabs($the_db) // Get the Tables List of Current Selected Database as an Array
$MySQL->GetIdx($the_tab) // Get the Indexes List of a Table as an Array
$MySQL->GetTabSetting($the_tab) // Get the Whole Struction of Current Selected Database as an Array
$MySQL->GetTabData($the_tab) // Get All of The Data of a Table
$MySQL->GetTabFields($the_db, $the_tab) // Get the Columns List of a Table as an Array
$MySQL->GetQueryFields() // Get the Columns List of Current Query
$MySQL->Free() // Free the $MySQL->DB_result in order to Release the System Resource
$MySQL->Close() // Close Current MySQL Link
$MySQL->Error($str) // Handle the Errors
class MySQL {
var $DB_host = "";
var $DB_user = "";
var $DB_pass = "";
var $DB_db = "";
var $DB_conn = NULL;
var $DB_select = NULL;
var $DB_error = false;
var $DB_qstr = "";
var $DB_result = NULL;
var $DB_RStype = 1;
var $DB_Qtype = false;