1. How to set a limit for the script to display data from 20 - 40 lines per sheet?
2. Link should increase by 1 <a href="./top_100/radio_1 <a href="./top_100/radio_2 <a href="./top_100/radio_3 и т.д. (В данном случае выводит только <a href="./top_100/radio_2
echo '<table align="left" border="0" width="100%">'; $fn = fopen("./top_100/radio.txt","r") or die("fail to open file"); while($row = fgets($fn)) { list( $sPlaylist, $sFile, $sNumber, $sArtist, $sTitle, $sCover ) = explode( "'", $row ); $sFile = substr("$sFile", 0, -2); $num = 1; $last = ++$num; echo '<tr><td width="7%"><br/><br/><div id="nau"><a href="./top_100/radio_' . $last . '/" target="_blank" id="s-nau"></a></div></td><td width="88%" align="left"><a href="./top_100/radio_' . $last . '/" target="_blank">' . $sArtist . '<br/><br/>'; echo $sCover . '<br />'; echo $sFile . '<br/><br/><div class="blue skins" id="blue-skin"> Genres: dance top 40 trance house pop </div></a></td><td width="5%"><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/></td></tr>'; } echo '</table>'; fclose( $fn );
$num = 1;probably worth taking out of the loop? - vp_arth