Problems with php and mysql
I am trying to create a php frount end for MySQL using the PEAR php modules. I am able to connect and display information from the database, however I am having problems with setting $_SESSION variables.
I have the database information, the result of DB::connect saved in $db. I am trying to set $_SESSION['db'] = $db, which works. When I go to submit a form and pass the session id the object in $_SESSION gets cut short and I get the following error: PHP_Incomplete_Class Object and
Fatal error: Unknown(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition db_mysql of the object you are trying to operate on was loaded _before_ the session was started
Is there a better way to pass the db object between php pages after submitting a form?
-Jessica
|