I am using this to create a mp3 list.
$mp3 = glob($directory . '*.mp3');
//print each file name
foreach($mp3 as $mp3)
{
echo '
<tr>
<td class="one"><!--number goes here --></td>
<td class="one">'. str_replace('(BDalbum.com).mp3','',basename($mp3)) .'</td>
<td class="two">'. $_GET['s'] .'</td>
<td class="three">'. $_GET['a'] .'</td>
<td class="two">'. $_GET['a'] .'</td>
</tr>
';
}
I want to add number with every item of the list like, first one: 1, second one:2 etc. how can I do it?