Hi everybody i have a class that i reference with: $DB= new DBInterface; outside a function it works fine, but using $DB inside a function changes the data type i think... i get an error saying i'm using a method on a non-object... any help appreciatted