Martin - 2007-04-11 19:11:23 -
In reply to message 1 from Ben de Leon
Sorry about the naming on the mysql.class.php - that should be sql.class.php
In the top of the example I wrote
/*
Now we initialize the object
The defines from the config file, goes automaticly into the object.
But we could also self put in the object with fx.
The defines should be named like
define('DB_SERVER','SERVER');
define('DB_DATABASE','DATABASE');
define('DB_USER','USER');
define('DB_PASSWORD','PASSWORD');
define('DB_TYPE','MYSQL'); // Could be in future fx. MSSQL or PGSQL
define('DB_PREFIX',''); // Prefix is if the tables have a prefix in front of the tablenames
*/
So, actually you can put those in the top of the of the sql.class.php file, and rename it to mysql.class.php if you want. Then you can delete the require_once('config.php');
I have for some minutes ago just uploaded a new example.php with the filenames, and the config file.
Thanks for the feedback :)