Reply to Re: Sessions problem

Your name:

Reply:


Posted by Daedalus.OS on 10/24/05 04:35

I might be looking in the wrong direction but....

> $_SESSION['carro']->add($_GET['date'],$_GET['start'],$_GET['stop'],$_GET['chan'],$_GET['title']);
> $_SESSION['carro']->show();

Where did you put $carro into $_SESSION['carro'] or where did you
instanciate $_SESSION['carro'] as a cart object ?

> ------------------------
> I obtain this error message the first time I use it:
> "Fatal error: Call to a member function add() on a non-object in
> C:\...\new.php on line 41"

It seems like $_SESSION['carro'] is not an object. You may put $carro into
your $_SESSION later in the script so that would explain why it's working
except on the first run.

Dae

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация