I got a script that I'm going to run on my home server and the coder no longer has anything to do with this project and I can't seem to reach him. I installed everything but it's only grabbing the information from the first table. I've been messing around with it and can't seem to figure it out. Ay help would be great!
unset ($tanks);
require_once("./inc/general_functions.php");
require_once("./inc/Calendar.php");
getHeader(getcwd());
?>
<h2 align="center" class="center">Fish Tank Database </h2>
<?php
print getBreadCrumb();
$units = getUnits();
$tanks = getTankObjects();
foreach ($tanks AS $tank) {
print "<table cellpadding=\"3\" cellspacing=\"0\" width=\"80%\" class=\"contentTable\" align=\"center\">\n";
print "<tr><td><h3>" . $tank->tank_name . " (<a href=\"./livestock.php?tank_id=" . $tank->tank_id . "\">view livestock for this tank</a> |
<a href=\"./expenses.php?tank_id=" . $tank->tank_id . "\">view expenses for this tank</a>)</h3></td></tr>\n";
print "<tr><td>Tank Size: " . $tank->tank_size . " " . $units['size_unit'] . " (" . convertSize($tank->tank_size, $units['size_unit']) . ") </td></tr>\n";
print "<tr><td>" . $tank->tank_desc . "</td></tr>\n";
print "</table><br />\n";