Re: Totally lost on why If statement doesn't work to call query
| From: | Karen Resplendo | Date: | Wed, 15 Sep 2004 18:44:33 +0000 |
| Subject: | Re: Totally lost on why If statement doesn't work to call query | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-36207@lists.php.net to get a copy of this message | ||
whoa! It looks like a space. no?
results of echo var_dump($z):
string(4) "C "
I'll try a trim statement.
thanks!
John Holmes <holmes072000@charter.net> wrote:
From: "Karen Resplendo"
> $data5=odbc_do($connectionSDS,"SELECT SystemType FROM
> orweb.dbo.InventoryTiny WHERE PWS='$pwsno'");
> $z=odbc_result($data5,"SystemType");
> $thissystem="C";
> echo $z; //returns "C"
> echo "
";
> echo $thissystem; //returns "C"
> echo "
";
> If($z==$thissystem)
Try var_dump($z) to see if there are any extra characters returned in $z.
---John Holmes...
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!