View Single Post
  #5 (permalink)  
Old 08-30-05, 10:25 AM
perleo perleo is offline
Coding Addict
 
Join Date: Jul 2003
Location: Ireland
Posts: 269
Thanks: 0
Thanked 0 Times in 0 Posts
but if at the top of the script I do

PHP Code:

$query $DBI->query"SELECT * FROM table" ); 

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
Reply With Quote