I have a file called dat.php which has a class defined in it. This class has usual functions for database connectivity and error reporting if not connected etc. I use this file anywhere in my application I want to connect to my database.
The constructor is
Expand|Select|Wrap|Line Numbers
- function DB {
- $this->host = 'XXXXXXXX';
- $this->user = 'XXXXXXXX';
- $this->password = 'XXXXXXXXXX';
- $this->database = 'XXXXXXXX';
- $this->persistent = false;
- }
Can anyone help please?
Thanks,
AJ