<?php
require_once("../conf.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Multiple Database References</title>
</head>
<body>
<?php
$dg = new C_DataGrid("SELECT * FROM orders", "orderNumber", "orders");
$dg->enable_edit("INLINE","CRUD");
$dg -> display();
//set database name parameter
$dg1 = new C_DataGrid("SELECT * FROM names", "id", "names",
array("hostname"=>"localhost",
"username"=>"root",
"password"=>"",
"dbname"=>"utf8db",
"dbtype"=>"mysql",
"dbcharset"=>"utf8"));
$dg1->enable_edit("INLINE","CRUD");
$dg1 -> display();
?>
</body>
</html>