Hjælp til korrekt opsætning.
Har brug for lidt hjælp igen.Jeg har lige svært ved at få det til at stå korrekt i opsætningen. af denne kode.
lige pt. vises alle mine ting under hinanden.
1
2
3
men jeg vil gerne have så den i stedet viser 3 på hver linie.
1 2 3
4 5 6
Men jeg kan simpelthen ikke få det til at virke. har rode rundt med det. Måske en her kan hjælpe mig ?
$res = 0;
if (!isnum($_GET['artist_id'])) redirect(FUSION_SELF);
$result = dbquery("SELECT * FROM ".DB_VIDEO_ARTISTS." WHERE video_artists_id='".$_GET['artist_id']."'");
$rows = dbrows($result);
if ($rows) {
$cdata = dbarray($result);
if (checkgroup($cdata['video_artists_access'])) {
$res = 1;
echo "<div align='center'><a href='".BASEDIR."infusions/video_collection/video_albums.php'>[VIDEO ALBUM FORSIDE]</a></div><br />";
opentable($cdata['video_artists_name']);
$rowstart = ((!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) ? 0 : $_GET['rowstart']);
$result = dbquery("SELECT * FROM ".DB_VIDEO_ALBUMS."
WHERE video_albums_artist_id='".$_GET['artist_id']."'
ORDER BY video_albums_artist ASC");
# $rows = dbrows($result);
$rows = dbcount("(video_albums_id)", DB_VIDEO_ALBUMS, "video_albums_artist_id='".$_GET['artist_id']."'");
if (dbrows($result)) {
$i = 1;
$formaction = FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "");
while ($data = dbarray($result)) {
if ($data['video_albums_video_pic'] != "")
$pic = $data['video_albums_video_pic'];
else $pic = "nopic.gif";
$itemviews = $data['video_albums_hits'];
echo "<table width='33%' border='1' cellpadding='0' cellspacing='' class='center-table'> <tr><td>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='' class='center-table'>
<tr><td width='12%' class='storytitle' align='top'><center><strong>".$data['video_albums_artist']."</strong></center></td>";
if ($data['video_albums_comment'] != "") {
echo "<td width='38%' rowspan='2' class='fototitle' valign='top'> ".nl2br(stripslashes($data['video_albums_comment']))."</td>\n";
}
echo "</tr><tr>
<td width='25%' class='fototitle' valign='top'><center><img border='0' src='".$pic."' width='100' height='100'/></center></td></tr>
<tr>
<td width='25%' class='fototitle' colspan='2'><i>".$locale['LPC486']."</i> ".$data['video_albums_cover_cond']." - ".$locale['LPC487']."</i> ".$data['video_albums_video_cond']."\n</td>
</tr></table>";
echo "</td></tr></table>";
if ($i != $rows) {
echo "<div align='center'><img src='".THEME."images/blank.gif' alt='' height='15' width='1' /></div>\n"; $i++;
}
}
closetable();
}
}
}
if ($res == 0) redirect(FUSION_SELF);