Hi,
I've had troubles with an application that randomly (until now) unsets the
session variable $_SESSION['editor']. I've hunted through all my code and
finally managed to rule out everything else than the following couple of
lines.
It unsets the session variable $_SESSION['editor'], but
anders thoresson wrote:
Hi,
I've had troubles with an application that randomly (until now) unsets
the session variable $_SESSION['editor']. I've hunted through all my
code and finally managed to rule out everything else than the following
couple of lines.
It unsets the session variable
You more than likely have register globals ON, so by setting $editor to
some value above, you are also changing the value of $_SESSION['editor'].
Yes! Settings at ISP was with globals on, but at my local server they were
off. Which added quite a lot to my confusion.
Thanks!
--
anders thoresson
while ($editor = mysql_fetch_row($editorresult))
How about changing from an assignment operator = to a comparison
operator ==.
No. I want to step through each and every one of the rows in the result
set, and that's done that way.
--
anders thoresson
--
PHP General Mailing List
4 matches
Mail list logo