Forum Moderators: coopster
I have the following code for index.php and i am asked to edit line 7 to allow access to an array of databases (instead of just one)...Does anyone know how to solve this?
<?php
require_once('lib/DataAccess.php');
require_once('lib/ProductModel.php');
require_once('lib/ProductView.php');
require_once('lib/ProductController.php');
$dao=& new DataAccess ('localhost','root','12qwaszx','products');
switch ( $_GET['view'] ) {
case "product":
$controller=& new ProductItemController($dao,$_GET);
break;
default:
$controller=& new ProductTableController($dao,$_GET);
break;
}
$view=$controller->getView();
//echo ("<pre>" );
//echo ("</pre>" );
echo ($view->display());
?>
Moreover, i should be able to obtain a list of links of the names of the databases from which i can choose and view the contents of...
Thank you