PDA

View Full Version : Call to a member function on a non-object in functions.php


Lesane
02-06-2002, 12:47 PM
Fatal error: Call to a member function on a non-object in functions.php on line 211

I'm using :
$awards=$DB_site->query("SELECT awardsid,name, url FROM award");

in functions.php but it dont accept it.

How is it possible to execute a query like above in functions.php?

Thanks

Admin
02-06-2002, 01:00 PM
Gloablize $DB_site in whichever function you are using that query in.

Lesane
02-06-2002, 01:26 PM
Thanks FireFly, that worked.