Forum Moderators: coopster

Message Too Old, No Replies

phpMyAdmin

index.php-wampserver

         

susan_s

11:50 pm on Jan 27, 2005 (gmt 0)

10+ Year Member



Hey, hope everyone is doin ok;)

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

Timotheos

12:38 am on Jan 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Susan_s and welcome to WebmasterWorld!

Doin' great except I'm confused. What version of phpMyAdmin is this? It doesn't look anything like mine.

Tim

susan_s

8:04 am on Jan 28, 2005 (gmt 0)

10+ Year Member



Hello,

It is phpMyAdmin 2.6.0..It comes with thewhole pqckage once you install wampserver...The package also includes SQLLiteManager version 1.0.4...

Laterz;)

Zipper

11:25 am on Jan 28, 2005 (gmt 0)

10+ Year Member



quite strange.. if you need to use an array of db's you should assign them to $cfg['Servers'][$i]['only_db'] in the config file.

I think you're trying to edit a wampserver file. if that's the case try accessing phpmyadmin sperately.