Search results

  1. A

    PHP: how can I know the number of the current row I'm reading from the result of a...

    ...MySQL query? For example... I have the following code... while ($row = mysql_fetch_assoc($result)) { echo '-'.row['name'].'<br>'; } how can I put the number of the row of that result before every id so it looks something like this...? 1-Peter 2-Marcus 3-William etc... I...
Back
Top