RE: [PHP-DB] PHP how to compare?
| From: | Hoover, Josh | Date: | Wed, 14 Mar 2001 19:43:23 +0000 |
| Subject: | RE: [PHP-DB] PHP how to compare? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-7476@lists.php.net to get a copy of this message | ||
I'm assuming these are strings you are comparing, correct? If so, try this:
if(strcmp($PASS, $PASSNOG))
{
echo "password doesn't match! $back";
exit;
}
http://www.php.net/manual/en/function.strcmp.php
Josh Hoover
KnowledgeStorm, Inc.
jhoover@knowledgestorm.com
Searching for a new IT solution for your company? Need to improve your
product marketing?
Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify
the process for you.
KnowledgeStorm - Your IT Search Starts Here
> 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