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]

 



From: "Karen Resplendo" <karenresplendo@xxxxxxxxx>

$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 "<br>";
echo $thissystem; //returns "C"
echo "<br>";
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


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

  Powered by Linux