Hello,
I am working on a full CMS system for a website called BFZone.com. Right now I'm working on the screen shot system. Basically we want 10 per page, and 2 per row. The page thing works correctly, but the row thing doesnt for some reason, that I cant figure out.
Here is what we get when the code runs: Gallery Mixup
Here is the code that runs that segment:
for($i = 0; $i < $num; $i++) {
$picinfo = mysql_fetch_assoc($query);
$name = $picinfo["name"];
$postedby = $picinfo["postedby"];
$url = $picinfo["url"];
if($counter == 2) {
echo "</tr>";
echo "<tr>";
echo "<td width=\"50%\">";
echo "<br><center><A HREF=\"javascript:window.open('$url','$name','width=800,height=600')\"><img src=\"$url\" height=\"75\" width=\"100\"></a></center><br>";
echo "<center>";
echo "<FONT FACE=\"Tahoma\" SIZE=\"1\" COLOR=\"999999\">";
echo "$name<br>";
echo "Posted by: $postedby";
echo "</font>";
echo "</center>";
echo "</td>";
$counter = 0;
} else {
echo "<td width=\"50%\">";
echo "<br><center><A HREF=\"javascript:window.open('$url','$name','width=800,height=600')\"><img src=\"$url\" height=\"75\" width=\"100\"></a></center><br>";
echo "<center>";
echo "<FONT FACE=\"Tahoma\" SIZE=\"1\" COLOR=\"999999\">";
echo "$name<br>";
echo "Posted by: $postedby";
echo "</font>";
echo "</center>";
echo "</td>";
$counter++;
}
}
I know this isnt a Javascript board, but if anyone knows, the popup thing doesnt work either.
Thanks a mill!