- void constructor DlDatabase()
Usage: constructor DlDatabase ( [$userName = ""], [$password = ""], [$databaseName = ""], [$serverName = ""] )
Database Objects constructor
Takes the input parameters and assigns them to members
Parameters
- string $userName - The user name to login with
- string $password - The password to login with
- string $databaseName - The name of the database to use
- string $serverName - The name of the server to connect to
Info
- string GetError()
Usage: GetError ( )
Returns an error message
Returns the latest error message encountered
Parameters
Info
- double GetMicroTime()
Usage: GetMicroTime ( )
Returns current time in milliseconds
This is used by the benchmarking functions to get the current time
Parameters
Info
- double GetTimer()
Usage: GetTimer ( )
Returns the total time
Returns the total time between $mTimeOne and $mTimeTwo, for benchmarking
Parameters
Info
- DlDatabase NewConnection()
Usage: NewConnection ( [$databaseType = ""], [$userName = ""], [$password = ""], [$databaseName = ""], [$serverName = ""] )
Determines which database files to include
Use this function to create a new connection object.
Parameters
- string $databaseType - The type of database. use "MySQL", "PGSQL", "MSSQL", "ODBC", "Oracle", "Sybase" or "IBase"
- string $userName - The user name to login with
- string $password - The password to login with
- string $databaseName - The database to select/use after logged in
- string $serverName - The server to connect to
Info
- boolean StartTimer()
Usage: StartTimer ( )
Sets the start time
Sets the start time, for benchmarking
Parameters
Info
- boolean StopTimer()
Usage: StopTimer ( )
Sets the end time
Sets the end time and calculates the difference between start time and end time, for benchmarking
Parameters
Info