We have a web application that we had developed that connects to a mySQL db through .php pages. We have the application hosted at Network Solutions. Works fine.
I'm building a local machine to use for offline demos. I've downloaded the database from Network Solutions and put the .php files in the correct directory to use.
CentOS 5.3
apache
php
mysql
Http://127.0.0.1/secure/index.php takes me to the application's login page, but it doesn't connect to the db.
phpMyAdmin:
Server: localhost Database: database1
Users having access to "database1"
User Host Type Privileges Grant Action
webuser localhost global ALL PRIVILEGES Yes
root localhost global ALL PRIVILEGES Yes
The two pages that deal with connecting to the db I edited: class.login.php and class.dbcon.php to:
private static $dsn = "mysql:host=localhost;dbname=database1";
private static $usr = "webuser";
private static $psw = "xxxxxxxxxxx";
The password "xxxxxxxxxxx" is the password that I set in phpMyAdmin for the user 3cpo.
What am I missing? Thanks in advance, J.