Ternstyle
Ternstyle
A web software and design firm
This is a very simple class designed to connect with and perform queries on a MySQL database.
$mysql = new mysqlClass($mysql_address,$mysql_username,$mysql_password, $mysql_database); $result = $mysql->query('select * from table_name');
The above variable $result will be an associative array of all the database rows the query returned. Which might look something like the following if it were to be printed:
array(1) { [0] => array(2) { ["id"] => string(4) "1000" ["name"] => string(16) "John Jingle" } }
The current version of this software is 3.8.
Connect with us
We dig the back-and-forth.