Re: Help w/ $_SESSION
| From: | Maxim Maletsky | Date: | Tue, 12 Nov 2002 12:15:16 +0000 |
| Subject: | Re: Help w/ $_SESSION | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123966@lists.php.net to get a copy of this message | ||
what PHP version are you running?
$_SESSION variable is only available since PHP v4.1.0 and, btw, you
always need to use session_start() before using it.
--
Maxim Maletsky
maxim@php.net
Jason Wong <php-general@gremlins.com.hk> wrote... :
> On Tuesday 12 November 2002 15:59, conbud wrote:
> > Hey,
> > I do have it in a variable but I just choose to leave it out.
> > Ive tried so many different things with this and even what you gave me for
> > some reason didnt work.
>
> *Why* doesn't it work?
>
> > The variables are being set, if I echo
> > $_SESSION['user'] then right data is shown. However as soon as I put it in
> > the mysql_query it stops working. Im using it for a login script that I
> > include at the start of every page. Heres what I got:
>
> I repeat:
>
> > > mysql_query($qry, $db) or die('Error in $qry ' . mysql_error());
>
> > >
> > > That way if your query doesn't work you'll at least know why.
>
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> Matz's Law:
> A conclusion is the place where you got tired of thinking.
> */
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>