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

can we return a resource and a string from one function in an array?

Status
Not open for further replies.

justride

Programmer
Joined
Jan 9, 2004
Messages
251
Location
US
Hi all,

I have a question...
how can i get the number of results in a mysql resource without screwing up the array. I want to get a coutn and keep th eintegrity. usually i setup a while loop:
while($row=mysql_fetch_array($resource)...

I could have a counter, but i want the total count prior to the loop. thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top