Resultaten splitsen in 2 kolommen
Giga
26/03/2004 18:25:00Ik heb zo een script-overzicht script, waarmee ik alle categorien kan weergeven, maar alles wordt ondereen gezet, nu zou ik dit graag in 2 kolommen splitsen.
Als er iemand is die weet hoe, ben ik hem zeer dankbaar.
Mark
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?
//cat-output in table
while ($row = MYSQL_FETCH_ROW($result))
{
// count all links in an unique cat
$resc = MYSQL_QUERY("SELECT * FROM $table_linkdata WHERE cat = $row[0]");
$anzcat = MYSQL_NUM_ROWS($resc);
// generate output-tables
echo "<p>\n<tr>\n";
// when not empty show link
if($anzcat != 0) {
echo "<td id='index_cat'>\n<IMG SRC='folder.gif' WIDTH='16' HEIGHT='13' BORDER='0'> <a href='view.php?cat=$row[0]'><font size='2'><b>$row[1]</b></a> ($anzcat)</font>\n</td>\n";
} else {
// if empty hide link
echo "<td id='index_cat'>\n<font size='2'><b>$row[1]</b> ($anzcat)</font>\n</td>\n"; }
echo "</tr>\n<td id='index_desc'>\n".ARROW_FOR_CAT_DESC." $row[2]\n</td>\n";
echo "</tr>\n";
}
?>
//cat-output in table
while ($row = MYSQL_FETCH_ROW($result))
{
// count all links in an unique cat
$resc = MYSQL_QUERY("SELECT * FROM $table_linkdata WHERE cat = $row[0]");
$anzcat = MYSQL_NUM_ROWS($resc);
// generate output-tables
echo "<p>\n<tr>\n";
// when not empty show link
if($anzcat != 0) {
echo "<td id='index_cat'>\n<IMG SRC='folder.gif' WIDTH='16' HEIGHT='13' BORDER='0'> <a href='view.php?cat=$row[0]'><font size='2'><b>$row[1]</b></a> ($anzcat)</font>\n</td>\n";
} else {
// if empty hide link
echo "<td id='index_cat'>\n<font size='2'><b>$row[1]</b> ($anzcat)</font>\n</td>\n"; }
echo "</tr>\n<td id='index_desc'>\n".ARROW_FOR_CAT_DESC." $row[2]\n</td>\n";
echo "</tr>\n";
}
?>
Als er iemand is die weet hoe, ben ik hem zeer dankbaar.
Mark
Er zijn nog geen reacties op dit bericht.