phpGrid tm Document
Class Definition
After successful installation, based on database connection parameter, call the constructor similar to the following:
$hostName = "localhost"; $userName = "joe"; $password = "1234"; $dbName = "demo"; $dg = new C_DataGrid($hostName, $userName, $password, $dbName);
For Enterprise version, add a fifth parameter to the constructor to indicate the type of database.
The default is "mySQL" if it is omitted.
For example:
// mySQL $dg = new C_DataGrid($hostName, $userName, $password, $dbName, "mySQL"); // SQL Server $dg = new C_DataGrid($hostName, $userName, $password, $dbName, " mssql"); // Oracle 8 $dg = new C_DataGrid($hostName, $userName, $password, $dbName, "oci8"); // PostGreSQL $dg = new C_DataGrid($hostName, $userName, $password, $dbName, "postgres"); // General ODBC Datasource $dg = new C_DataGrid($datasource, $userName, $password, "", "odbc"); // MS Access $dg = new C_DataGrid($hostName, $userName, $password, $dbName, "access"); // IBM DB2 $dg = new C_DataGrid($hostName, $userName, $password, $dbName, "db2");
A full list of supported databases and naming convention are available in
ADOdb website.
Not required but we encourage users to visit ADOdb website, which helps you understand, at least in high level,
how phpGrid utilize it under the hood.
› Continue to Functional Methods




