Re: Help w/ $_SESSION
| From: | Jason Wong | Date: | Tue, 12 Nov 2002 08:29:39 +0000 |
| Subject: | Re: Help w/ $_SESSION | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123947@lists.php.net to get a copy of this message | ||
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.
*/