I have three files:

adodb.inc.php  -  a database abstract class
soldier_db.inc.php  -  a specific include for the databases I am working
with
index.php  -  a page that displays lots of different things...

soldier_db.inc.php has the include line for adodb.inc.php and establishes a
connection to a mysql batabase called $connection

index.php includes soldier_db.inc.php and then tries to use some of the
class elements from adodb.inc.php and $connection **from**
soldier_db.inc.php

The debugging shows the connection as valid while echoing from the
soldier_db.inc.php but dead when echoing from the index.php

for example, this code reports "OK" while in the soldier_db.inc.php but
"Dead" in the index.php portion....  exact same code, soldier_db.inc.php
included above this code in index.php

if (!$connection) {
        echo "Dead";
}
else {
        echo "OK";
}

Does anyone have an idea why this is happening?  None of these items are in
functions, so I guess I wouldn't think that it's a globals issue. (and I've
tried establishing $connection as a global variable to no change in results)

If anyone wants the code itself, I'll pull it out and send it.

Thanks in advance,

John
        






---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to