I have a simple while loop like this
while($row = mysql_fetch_array($result)){
}
It fetches many rows one by one and it is fine. But i have add some extra features according to the row number.
- when row number=1( first row)-do something
- when row number=2( second row)-do something new
how can i get that ROW NUMBER of the each row?