PHP Classes

missing files

Recommend this page to a friend!

      Just another SQL Wrapper  >  All threads  >  missing files  >  (Un) Subscribe thread alerts  
Subject:missing files
Summary:example.php
Messages:2
Author:Ben de Leon
Date:2007-04-10 23:10:49
Update:2007-04-11 19:11:23
 

  1. missing files   Reply   Report abuse  
Picture of Ben de Leon Ben de Leon - 2007-04-10 23:10:49
Please take a look at example.php

These are the first 6 lines in example.php:
======== start ===============
<?php
require_once("config.php");
// First we get the defines from the config file.

require_once("mysql.class.php");
// Now we include the mysql class file.
======= end ===================

i noticed that config.php and mysql.class.php is not included in the zip file that I downloaded. Please help me. I want to run this program.


Thanks,
Ben from Manila, Philippines

  2. Re: missing files   Reply   Report abuse  
Picture of Martin 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 :)