* Thus wrote Daniel ([EMAIL PROTECTED]):
> I checked ant that is not the cause of this problem.
> Any other sugesstion?

Yes it is the problem.  Somewhere the $_SESSION['id_produs'] is set
to a string or number.

> 
> 
> "John W. Holmes" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Daniel wrote:
> >
> > > hi, how do i solve this error?
> > >
> > > Fatal error: [] operator not supported for strings
> > > in /var/www/html/p.../magazin/cos.php on line
> > > 13
> > >
> > > line 13 is this line:
> > >
> > > $_SESSION["id_produs"][]=$_POST["id_produs"];
> > >
> >
> > Sounds like you've already assigned a value to $_SESSION['id_produs']
> > and are now trying to turn it into an array.
> >
> > $_SESSION['id_produs'] = 'string value';
> > $_SESSION['id_produs'][] = 'some other value';
> >
> > Check your code...
> >
> > -- 
 

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to