Re: PHP how to compare?
| From: | Ron Brogden | Date: | Wed, 14 Mar 2001 20:29:00 +0000 |
| Subject: | Re: PHP how to compare? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-7485@lists.php.net to get a copy of this message | ||
At 10:21 PM 3/14/2001 +0100, Ivo Stoykov wrote:
Try to add this before if statement echo("$PASS<br>$PASSNOG");A more accurate way to tell this would be to do the following: echo "<pre>\"".$PASS."\",\"",$PASSNOG,"\"</pre>\n"; This was you will see embedded spaces and carriage returns which will not be obvious if you only print the variables. What you should be seeing as output is: "value1","value2" If instead you get something like: "value1 ","value2 " Then you can see you have spaces and newlines messing things up. Cheers, Ron -----------------------------------------------------------------------------
Island Net AMT Solutions Group Inc. Telephone: 250 383-0096 1412 Quadra Toll Free: 1 800 331-3055 Victoria, B.C. Fax: 250 383-6698 V8W 2L1 E-Mail: support@islandnet.com Canada WWW: http://www.islandnet.com/-----------------------------------------------------------------------------