note 9409 added to odbc_result
| From: | andy at mindgate dot net | Date: | Thu, 02 Nov 2000 06:49:54 +0000 |
| Subject: | note 9409 added to odbc_result | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7265@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).
http://www.php.net/manual/function.odbc-result.php