| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| readme.txt | 2012-05-10 | 789 Bytes | |
| nemysql-v0.1.zip | 2012-05-10 | 3.7 kB | |
| Totals: 2 Items | 4.5 kB | 0 |
Thankyou for downloading the Nefarious Engineering MySQL Wrapper Class.
==================
Required files:
==================
- mysql.php
- mysql.cfg.php
==================
Edit MySQL config:
==================
open up 'mysql.cfg.php' with a text-editor and fill in the details for your mysql server.
==================
Upload files:
==================
the next step is to upload the files to your server.
==================
Include and Init
==================
finally add the following code at the top of your website or script:
define('MYSQL',1);
define('MYSQL_BASE',dirname(__FILE__).DIRECTORY_SEPARATOR);
require_once(MYSQL_BASE.'mysql.php');
$db = Database::init(MYSQL_HOST,MYSQL_USER,MYSQL_PASS,MYSQL_DB);
$db->connect();
=================
That's it!
=================