try: session_register("tb");
$tb = new tabela("tb_area_interesse", "Área de Interesse"); then after using sesion_start() in the next script $tb should contain your object. Richard "Cdré «góvîj érg" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > I use php 4.0.6 and I would like to do the following : > > teste_classe1.php > <? > require ("classes.inc"); > session_start(); > echo("<html>"); > echo("<body>"); > session_register($tb); > $tb = new tabela("tb_area_interesse", "Área de Interesse"); > ?> > > <a href=teste_classe2.php>teste_classe2</a> > </body> > </html> > > > teste_classe2.php > > <? > require ("classes.inc"); > session_start(); > echo("<html>"); > echo("<body>"); > $result = $tb->qual_tabela(); > echo $result; > session_unregister($tb); > session_destroy(); > ?> > </body> > </html> > > > When I load teste_classe1.php, its ok, but when I click on teste_classe2 link I > receive : > > Fatal error: Call to a member function on a non-object > in /home/httpd/html/curriculum/adm/teste_classe2.php on line 6 > > > any ideas ??? > > Obrigado, > André Castanheira > Carioca Engenharia S.A. > +55 21 3891-2200 r; 2325 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]