RE: [PHP] Destroying Sessions

2002-05-10 Thread Ford, Mike [LSS]
> -Original Message- > From: Chris Knipe [mailto:[EMAIL PROTECTED]] > Sent: 10 May 2002 04:38 > > Just to clarify myself above... > if ($var1 = $var2) { . > > In my crazy head, I see $var1 and $var2 to be in a sort of > "read-only" state > inside the () of the if statement. For a i

Re: [PHP] Destroying Sessions

2002-05-09 Thread Chris Knipe
> if ($VerifyPasword[ContactID] = $_SESSION['ContactID']) > > This statement is /always/ true if $_SESSION['ContactID'] is non-zero, or > non-empty. > > If your code is copy-and-paste then the error is most likely because you used > a single 's' in $VerifyPasword[ContactID]. And also is better t

Re: [PHP] Destroying Sessions

2002-05-09 Thread Jason Wong
On Friday 10 May 2002 10:52, Steve Buehler wrote: > Nokeep writing to the list. Next time, you might actually Good idea. [snip] > >What baffles me, is > > > > while ($VerifyPassword = mysql_fetch_array($PasswordCheckSQL)) { > > // Compare UserIDs > > if

Re: [PHP] Destroying Sessions

2002-05-09 Thread Chris Knipe
> I am not an expert at PHP / MySQL. To me it would sound like the > one = is assigning the $VerifyPasword[ContactID] whatever is in > $_SESSION['ContactID'] which would mean that the else part would never be > executed. Honestly though, there is a lot that I don't know. I know very I

Re: [PHP] Destroying Sessions

2002-05-09 Thread Steve Buehler
s, that this one requires a single = and not a double >like all the other hundreds I have in my code? > >:) Thanks. > >-- >me > > >- Original Message - >From: "Steve Buehler" <[EMAIL PROTECTED]> >To: "Chris Knipe" <[EMAIL PROTECTED]&g

Re: [PHP] Destroying Sessions

2002-05-09 Thread Steve Buehler
Best bet is to go to any book store that carries programming books and pick up a book on PHP. There are so many different things that you need to know that nobody can mention them all here. The other option is to go to http://www.php.net and read everything the site has. $var = $value assigns