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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C API: mysql_fetch_row() 2

Status
Not open for further replies.

JoSno

Programmer
Apr 11, 2003
45
GB
Hi all,

I make a mysql query using mysql_query(..). I then use mysql_store_result(..) to get a MYSQL_RES *result_set. I then run mysql_fetch_row(..) repeatedly over the set to do something or other.

My question is is it possible to reset to the beginning of the MYSQL_RES *result_set so that I can run mysql_fetch_row(..) over it again later on?

Cheers!
Jo
 
Brilliant, just what I was after. Knew it would be there somewhere but buggered if I could find it!

Gold stars for both of you!

Jo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top