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

From: Date: Wed, 15 Sep 2004 17:48:24 +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-36204@lists.php.net to get a copy of this message
From: "Karen Resplendo" <karenresplendo@yahoo.com>
$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...

« previous php.db (#36204) next »