CodeChargenewbie
Posts: 114
|
| Posted: 03/25/2008, 9:58 AM |
|
CodeCharge provides classes for talking to the database, with such functions as next_record() and close(). So, normally, I traverse through the result of a query using next_record(). Say my database query returns 10 records and I traverse through all 10 records. At this very point, is there a way I can reset the pointer to the first record (or any record of my choosing, for that matter) without querying the database again? It's stupid to query the database twice for the same request just reset its data pointer to the first row. There must be some way in Codecharge to reset the data pointer...
Important: I'm using PHP and codecharge 4.0 and the latest patch (0.04).
Thank you.
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 03/25/2008, 4:41 PM |
|
http://forums.codecharge.com/posts.php?post_id=95304
[continues here]
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
|