Hi,
I am confusing myself slightly.
I have a query that is being run on a mysql database and it is filtering and ordering the data.
What I am trying to do is display the result number next to the item.
For example:-
I have a database of different pets, 4 are being picked up.. Cat, Dog, Rabbit and Hamster.
What I am trying to do is put the result number next to the pet.
i.e.. cat would say... cat = 1st result out of 4
dog would say... dog = 2nd out of 4
rabbit 3rd out of 4
etc...
Anyone have any ideas? Is this even possible in php and mysql?
Many thanks in advance.
edit: the order may change from time to time, so the 3rd result may come 2nd after a while, this means it isn't really practical to add a resultid column or anything manually, as that would mean having to keep changing the value of the cell and obviously with a lot of hits this could kill bandwidth?