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