I have upgraded PHP and still can not get this to work.
I keep getting these errors.
Notice: Undefined variable: db in
C:\intranet\pmi\Includes\db.inc.php on line 2
Notice: Undefined variable: hardwareID in
C:\intranet\pmi\Includes\global.inc.php on line 25
Notice: Undefined variable: peripheralID in
C:\intranet\pmi\Includes\global.inc.php on line 25
Notice: A session had already been started - ignoring
session_start() in
C:\intranet\pmi\Includes\securityFunctions.inc.php on
line 7
Warning: Cannot modify header information - headers
already sent by (output started at
C:\intranet\pmi\Includes\db.inc.php:2) in
C:\intranet\pmi\Includes\generalFunctions.inc.php on
line 194
Warning: Cannot modify header information - headers
already sent by (output started at
C:\intranet\pmi\Includes\db.inc.php:2) in
C:\intranet\pmi\Includes\generalFunctions.inc.php on
line 195
I have searched for a resolution to this but can't
find any kind of support.
Can someone make any suggestions or have any idea.
Tony
Logged In: NO
I have exactly the same errors. No luck finding a solution.
Logged In: NO
To correct the Undefined variable: db error:
In the file db.inc.php, you need to move this part of the code
$db = mysql_connect('localhost','dbuser','dbpass');
mysql_select_db('dbname',$db);
above the
If (!$db) {
function dbquery($strSQL) {
global $db;
$db = mysql_connect('localhost','dbuser','dbpass');
mysql_select_db('dbname',$db);
Logged In: NO
Hi,
I installed PMI 2.81 on a RHEL box running mysql and PHP5. When I open
http://<hostname>/pmi281/ in my browser, it shows me the following errors:
Notice: Undefined variable: db in /var/www/html/pmi281/Includes/db.inc.php
on line 3
Notice: Undefined variable: hardwareID in
/var/www/html/pmi281/Includes/global.inc.php on line 25
Notice: Undefined variable: peripheralID in
/var/www/html/pmi281/Includes/global.inc.php on line 25
Notice: Undefined variable: HTTP_POST_VARS in
/var/www/html/pmi281/login.php on line 6
However it shows the text boxes to login and when I type in the username
and password and click Submit, it shows the following messages, can anybody
help?
Notice: Undefined variable: showHeader in
/var/www/html/pmi281/Includes/headerFunctions.inc.php on line 99
Notice: Undefined variable: strError in /var/www/html/pmi281/login.php on
line 38
Notice: Undefined variable: strError in /var/www/html/pmi281/login.php on
line 41
Notice: Undefined variable: strError in /var/www/html/pmi281/login.php on
line 45
Notice: Undefined variable: strError in /var/www/html/pmi281/login.php on
line 48
Notice: Undefined variable: intNote in /var/www/html/pmi281/login.php on
line 70
Thanks in advance.
anindras@rediffmail.com