relixx
Nov 13th 2006, 12:06 am
Man, I need more sleep. This is probably a very easy to solve solution, but for the life of me i cant figure it out
I have the results of a mysql query, and after its been used I need to loop through the results in the reverse order.
Im sure i could use a for statement, eg:
for ($i=5; $i>=0; $i--) {
find the row $i in the result
spit it out
}
however, i cant remember how to seek a specific row in mysql and my google searches arent turning p much (lol, i dont think im able to read the pages properly)
can somehow tell me how to go to a specific row in a result set? I used mysql_fetch_assoc, would i have to use another function?
I have the results of a mysql query, and after its been used I need to loop through the results in the reverse order.
Im sure i could use a for statement, eg:
for ($i=5; $i>=0; $i--) {
find the row $i in the result
spit it out
}
however, i cant remember how to seek a specific row in mysql and my google searches arent turning p much (lol, i dont think im able to read the pages properly)
can somehow tell me how to go to a specific row in a result set? I used mysql_fetch_assoc, would i have to use another function?