corillo181 Posted December 26, 2006 Share Posted December 26, 2006 [code]<?phpwhile($song=mysql_fetch_array($getsong)){?> <tr> <td>1</td> <td><?php echo $song['path'];?></td> </tr><?php}?>[/code]how do i make it so that the one keep adding up to as song as i got on the while statement. Link to comment https://forums.phpfreaks.com/topic/31899-counting/ Share on other sites More sharing options...
craygo Posted December 26, 2006 Share Posted December 26, 2006 [code]<?php$i=1;while($song=mysql_fetch_array($getsong)){?> <tr> <td><?=$i?></td> <td><?php echo $song['path'];?></td> </tr><?php$i++;}?>[/code]Ray Link to comment https://forums.phpfreaks.com/topic/31899-counting/#findComment-148040 Share on other sites More sharing options...
corillo181 Posted December 26, 2006 Author Share Posted December 26, 2006 thanx ray Link to comment https://forums.phpfreaks.com/topic/31899-counting/#findComment-148041 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.