Re: [PHP] Dreaded expecting `T_VARIABLE' or... Error -- long post

2002-10-11 Thread Marek Kilimajer
the line global ; should be global $some_variable; or delete it Verdon Vaillancourt wrote: >Hi Apologies if this question has been answered before and I can't find it. >I have searched and although finding similar issues, I haven't been able to >fix. > >I have a file that creates a search for a

RE: [PHP] Dreaded expecting `T_VARIABLE' or... Error -- long post

2002-10-11 Thread John W. Holmes
If you're going to use an array in a string, you have to surround it with braces. echo "value is {$c2[something]} okay?"; Or, exit out of the string: echo "value is " . $c2['something'] . " okay?"; If you use it outside of the string, you need the single/double quotes around the key so you don