2 Bilder pro Reihe... das müsste doch machbar sein oder?
Der Output den ich grade nutze sieht folgendermassen aus:
$pic = 0;
$output = '';
while ($row = sql_fetch_array($result)) {
if (empty($row['title'])) {
if (preg_match('#^(.+)\.[^.]{2,4}$#', $row['filename'], $matches)) {
$row['title'] = $matches[1];
}
$row['title'] = str_replace('_', ' ', $row['title']);
}
$output .= '<td align="center" valign="baseline"><a href="modules.php?name=' . $cpg_name . '&act=displayimage&album=lastup&cat=0&pos=' . $pic . '"><img src="' . get_pic_url($row, 'thumb') . '" border="0" alt="' . $row['title'] . '" title="' . $row['title'] . '"></a></td>';
$pic++;
}
if ($output) {
$content = '<table width="100%" border="0" cellpadding="10" cellspacing="10" align="center"><tr>'
. $output . '</tr>
<tr align="center">
<td colspan="' . $limit . '" valign="baseline"></td>
</tr>
</table>';
}
Nun hatte ich schon probiert, die "table width" auf 500 festzusetzen. Brachte aber auch leider keinerlei Änderung.