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]
|