RE: [PHP-DB] Reusing a Query
| From: | Boget, Chris | Date: | Fri, 01 Dec 2000 21:19:41 +0000 |
| Subject: | RE: [PHP-DB] Reusing a Query | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-4946@lists.php.net to get a copy of this message | ||
> In my code I need to reuse my query in a couple of places. Is
> there a way to tell the row pointer to move to the top of the query?
$rowNum = 0; // beginning
mysql_data_seek( $result, $rowNum );
> Also is there any query caching capabilities built into PHP? (3 or 4)
Don't need it. All you need is the result returned by the query function.
Chris