Alrighty.. I get so many submitted forms that it is getting difficult for my visiters to load the page...
I was wondering how to get it so that it only displays ... maybe the first 100 rows on the page itself, but above that is a drop down box with the options to display a certain range of rows like:
[drop down - Display entries:]
1-100
101-200
201-300
etc...etc and it'll keep going based on how many entries there are
And whatever they select.. it'll show those certain rows...
I'm not sure what I need to do.. do I need to do anything to my database table? Anyways here's the code I currently have in it:
<?php
mysql_connect("localhost", "gwynevere_hatch", "blah") or die(mysql_error());
mysql_select_db("gwynevere_hatch") or die(mysql_error());
$result = mysql_query("SELECT * FROM hatchery") or die(mysql_error());
while($row = mysql_fetch_array( $result )){
echo "Scroll: " . "<a href=http://dragcave.net/user/" . $row['username'] . " target=_blank>" . $row['username'] . "</a><br /><br />";
if ($row['egg1'] == true)
echo "<a href=http://dragcave.net/viewdragon/" . $row['egg1'] . " target=_blank>" . "<img src=http://dragcave.net/image/" . $row['egg1'] . " border=0></a>";
if ($row['egg2'] == true)
echo "<a href=http://dragcave.net/viewdragon/" . $row['egg2'] . " target=_blank>" . "<img src=http://dragcave.net/image/" . $row['egg2'] . " border=0></a>";
if ($row['egg3'] == true)
echo "<a href=http://dragcave.net/viewdragon/" . $row['egg3'] . " target=_blank>" . "<img src=http://dragcave.net/image/" . $row['egg3'] . " border=0></a>";
if ($row['egg4'] == true)
echo "<a href=http://dragcave.net/viewdragon/" . $row['egg4'] . " target=_blank>" . "<img src=http://dragcave.net/image/" . $row['egg4'] . " border=0></a>";
if ($row['egg5'] == true)
echo "<a href=http://dragcave.net/viewdragon/" . $row['egg5'] . " target=_blank>" . "<img src=http://dragcave.net/image/" . $row['egg5'] . " border=0></a>";
echo "<br /><br />";
}
?>