Here is the code with the gallery_bits template and it now just displays everything in one line...
PHP Code:
<?php
require("./global.php");
$result1 = $DB_site->query("SELECT * FROM albums WHERE id=$album");
$res = $DB_site->fetch_array($result1);
$event = $res["title"];
$result = $DB_site->query("SELECT * FROM photos WHERE albumid=$album");
/*
$i = 0;
echo "<table>\n<tr>\n";
while ($row = mysql_fetch_assoc($result))
{
$picid = $row["picid"];
$url = $row["url"];
$title = $row["title"];
if (($i++ % 3) == 0) {
echo "</tr>\n<tr>\n";
}
echo "<td><normalfont><a href=photo.php?id=" . $row['picid'] . "><img width=\"150\" border=\"0\" height=\"150\" src=\"photos/" . $row['url'] . "\" alt=" . $row['title'] . "></a><br><center>" . $row['title'] . "</center></normalfont></td>\n";
}
echo "</tr>\n</table>\n";
*/
$i = 0;
echo "<table>\n<tr>\n";
while ($row = mysql_fetch_assoc($result))
{
$picid = $row["picid"];
$url = $row["url"];
$title = $row["title"];
if (($i++ % 3) == 0) {
echo "</tr>\n<tr>\n";
}
eval("\$gallerybits .= \"".gettemplate("gallery_bits")."\";");
}
echo "</tr>\n</table>\n";
eval("dooutput(\"".gettemplate("gallery")."\");");
?>