I am testing in windows and I have no issues, but when I test my code on Linux my code does not work. I do not get any value returned. I have validated that my code returns a value from query analyzer.
Here is my code:
<?
$query = " set nocount on declare @PaymentKey int select top 1 @PaymentKey = PaymentKey from arPayments order by PaymentKey desc select PaymentKey = @PaymentKey";
$result = odbc_exec($database1, $query);
//get payment key
while ($result && $row = odbc_fetch_object($result)) {
$PaymentKey = $row->PaymentKey;
}
?>
my query is simplified from the original version but is basically doing the same thing. Any help would be GREATLY appreciated.


