Code:
<center><table>
<th>Nursery<br>
<?php
mysql_connect("localhost", "YOUR-DATABASE-USERNAME", "YOUR-DATABASE-PASSWORD");
mysql_select_db("YOUR-DATABASE") or die(mysql_error());
?>
<tr>
<td VALIGN="top" >
<?
// Retrieve all the adopts from the table
$result = mysql_query("SELECT * FROM adopts_owned_adoptables WHERE isfrozen = 'no' LIMIT $start, 50")
or die(mysql_error());
while($row = mysql_fetch_array( $result )) {
// Print out the contents of the entry
echo "<a href=\"http://YOUR-SITE-URL/levelup.php?id=" .$row['aid'] . "\" target=\"view\"><img src=\"http://YOUR-SITE-URL/get/".$row['aid'].".gif\" title=\"" .$row['owner'] . "\"></a> ";
}
?>
</td>
</tr>
<tr>
<td>
<?php
for($i=1; $i<=$pages; $i++) {
echo '<a href="?p=' . $i . '">[' . $i . ']</a> ';
}
?>
</td>
</tr>
</table>
<iframe name="view" id="view" scrolling="no" width="100%" height="600px" frameborder="0">