note 99701 rejected from function.cubrid-fetch-object by danbrown
| From: | danbrown@php.net | Date: | Tue, 31 Aug 2010 15:40:41 +0000 |
| Subject: | note 99701 rejected from function.cubrid-fetch-object by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172206@lists.php.net to get a copy of this message | ||
Note Submitter: cristian dot romanescu at gmx dot com
----
The following code yields an warning:
<?php
$cur = cubrid_execute($db_conn, 'SELECT * FROM users');
$array = array();
while ($row = cubrid_fetch_object( $cur )) {
$array[] = $row;
}
?>
Warning: Error: CCI, -5, Invalid cursor position in test.php on line 10