Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with PEAR DB functions

Status
Not open for further replies.

petermaci

Programmer
Jun 1, 2004
11
0
0
CA
Hi:

Just can't find the equivalent to this:

// co back to top of result and start again
mysql_data_seek($result, 0);

in PEAR... to re-set the result pointer to the top and start processing over... I suppose I could hit the database with the query again, but I was hoping to save on I/O.

Thoughts, comments, help is all appreciated.
Peter
 
It may well be that PEAR's DB class doesn't support that functionality, as it is designed to support multiple database systems. Some of those database systems may not support that capability, so the class doesn't include it.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
I have since found out that indeed it does not support that functionality.. so I have to hit the database multiple times... oh well...

Thanks for your reply... Peace Out
 
Actually, I'd just recommend that you not use the PEAR DB class and instead just access the data using PHP's MySQL functions.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top