Re: PHP how to compare?
| From: | Joe Brown | Date: | Fri, 16 Mar 2001 03:23:03 +0000 |
| Subject: | Re: PHP how to compare? | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-7528@lists.php.net to get a copy of this message | ||
No, two is a more accurate comparison.
!==
Although for most cases != is sufficient.
""Richard S. Crawford"" <rscrawford@mossroot.com> wrote in message
news:5.0.2.1.0.20010314164313.00a10cb0@mail.mossroot.com...
> use just one = sign. So,
>
> if ($PASS != $PASSNOG) {...
>
>
> At 01:41 AM 3/15/01 +0100, Duky wrote:
> >Hmm.. maybe I wasn't clear enough... what I want is to check is WHEN the
> >two passwords aren't the same, then it should echo "password doesn't
> >match!". So when NOT the same, then echo. What to use for the NOT??
> >should it then be something like this with the exlamationmark?
> >
> > if ($PASS !== $PASSNOG) {
> > echo "password doesn't match! $back";
> > exit;
> > }
> >
> >
> >Duky
> >
> >
> >Duky wrote:
> > >
> > > Can somebody tell me what the proper statement is for this? I want two
> > > variables to match with eachother but this doesn't seems to work. Help
> > > please? THNX
> > >
> > > if ($PASS != $PASSNOG) {
> > > echo "password doesn't match! $back";
> > > exit;
> > > }
> > >
> > > Duky
> > >
> > > --
> > > PHP Database Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php-db-help@lists.php.net
> > > To contact the list administrators, e-mail:
php-list-admin@lists.php.net
> >
> >--
> >PHP Database Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> >For additional commands, e-mail: php-db-help@lists.php.net
> >To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> http://www.mossroot.com/index.php
> AIM Handle: Buffalo2K
> e-mail: rscrawford@mossroot.com
> "When you lose the power to laugh at yourself, you lose the power to think
> straight." --Clarence Darrow
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>