note 9409 rejected and deleted from odbc_result by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Fri, 03 Nov 2000 23:21:07 +0000 |
| Subject: | note 9409 rejected and deleted from odbc_result by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7357@lists.php.net to get a copy of this message | ||
After upgrading to PHP 4.0.3pl1 from 4.0.2, the following statements:
$qryid=odbc_exec($link,"select @@IDENTITY as 'lastinserted'");
$lastinserted=odbc_result($qryid,"lastinserted");
seem to be putting a decimal value instead of an integer in $lastinserted because an error occurs
which displays the value of $lastinserted in the odbc_exec string (that comes after the 2 statements
above) as being in decimal instead of integer format (i.e. 14.00 instead of just 14).