Re: Totally lost on why If statement doesn't work to call query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx> 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!

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux