i have an include file that contains a db-handling class that i use for all my db stuff.
include("db_class.php");
problem is, in order to use this class inside a function, i have to include the file inside the function.
the real problem occurs, though, when i've include the file into two functions on the same page, then i get an error "cannot redeclare class"
is there an easier way i could be doing this? how can i include this file "globally"?