but if at the top of the script I do
it returns the same type of error,
Fatal error: Call to a member function on a non-object in /var/www/sessions.php on line 35
is it the way I call the database script that has the DBI class ?
I do $DBI = new DBI( "mysql://root

***@localhost/db" );
at the end of the database script. and then include that in the sessions.php