note 22639 deleted from function.ociresult by dams
| From: | dams@php.net | Date: | Fri, 28 Jun 2002 01:37:52 +0000 |
| Subject: | note 22639 deleted from function.ociresult by dams | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-32320@lists.php.net to get a copy of this message | ||
In versions previous to 4.2.1 (I think) after doing this:
ocifetch($stmt);
$val = ociresult($stmt,1);
If the sql statment you made returned no records, $val would be empty.
After the version noted above, $val contains some garbage characters (not sure where they came
from.)
I had to do this instead:
if(ocifetch($stmt))
$val = ociresult($stmt,1);
I haven't seen any documentation on what ocifetch returns, but this seemed to fix the problem.