I ahve this table as code shown below with buttons Up and down above and below the table respectively now whgat i want to do is that as I have ten enteries in the table.
I want to show only 6 of them at one go on a page and the rest 4 should be hidden and when I cliock the “down” button the next four should be displayed and vice versa when I click “up” button the first 6 should be displayed.
[code]
<div >
<input type=”button” id=”up” value=”up”/>
<?php
$input = array(‘one’, ‘two’, ‘three’, ‘four’, ‘five’, ‘six’, ‘seven’, ‘eight’, ‘nine’, ‘ten’);
$cols = 1;
echo ‘<table style= “background-color:#0066CC;overflow-y: scroll;border:5;bordercolor:#FFFFFF;cellpadding:0;width:600px”>’;
for ($i=0; $i < count($input); $i++)
{
echo “<tr>”;
echo “<td>$input[$i]</td>”;
echo ‘<td width=”25″ align=”center” style=”background-color:#0000FF”><a href=”#” onClick=”AddtoPlayList(this);return false” > <img src=”graphics/1024×600/en/album-box.png” height=”60″ /></a></td>’;
echo “</tr>”;
}
echo “</table>”;
?>
<input type=”button” id=”down” value=”down”/>
</div>