Onbekend |
|
K weet niet, maar dit is wel vreselijk slordig en sloom:|
<?
$querylinkcats1 = mysql_query("SELECT id,naam,siteinfo,sitenaam,siteurl FROM `bz_linkcats`");
$id = $_GET['id'];
$resultlinkscat1 = mysql_num_rows($querylinkcats1);
if(!$resultlinkscat1) {
?>
We hebben nog geen link categorieen.
<?
} else
{
while($objectlinkscat1 = mysql_fetch_row($querylinkcats1))
{
?>
<table width=639 border=1 cellpadding=0 cellspacing=0 bordercolor='black' style='border-collapse: collapse'>
<tr>
<td background="images/nieuws_01.gif">#
<?= $objectlinkscat1[0]-<b>$objectlinkscat1[1]; ?>
</b></td>
</tr>
<?
$querylinksophalen1 = mysql_query("SELECT COUNT(id) FROM `bz_links` WHERE `Categorie_id` = ".$objectlinkscat1)or die(mysql_error());
$resultlinksophalen1 = mysql_rest($querylinksophalen1,0);
if(!$resultlinksophalen1) {
?><tr><td bgcolor="#EEEEEE"> Er zijn in deze categorie nog geen links geplaatst!</td></tr>
<? } else {
while($objectlo = mysql_fetch_row($querylinksophalen1)) {
?><tr> <td width=100 bgcolor="#EEEEEE"><a href="<?= $objectlo[4]; ?>"><?= $objectlo[1]; ?></a></td><td width"539 bgcolor="#EEEEEE"><?= $objectlo[2]; ?>"</td></tr> ";
}}
?></table><br><?
}}
?>
<? $querylinkcats1 = mysql_query("SELECT id,naam,siteinfo,sitenaam,siteurl FROM `bz_linkcats`"); $id = $_GET['id']; if(!$resultlinkscat1) { ?> We hebben nog geen link categorieen. <? } else { { ?> <table width=639 border=1 cellpadding=0 cellspacing=0 bordercolor='black' style='border-collapse: collapse'> <tr> <td background="images/nieuws_01.gif"># <?= $objectlinkscat1[0]-<b>$objectlinkscat1[1]; ?> </b></td> </tr> <? $querylinksophalen1 = mysql_query("SELECT COUNT(id) FROM `bz_links` WHERE `Categorie_id` = ".$objectlinkscat1)or die(mysql_error()); $resultlinksophalen1 = mysql_rest($querylinksophalen1,0); if(!$resultlinksophalen1) { ?><tr><td bgcolor="#EEEEEE"> Er zijn in deze categorie nog geen links geplaatst!</td></tr> <? } else { ?><tr> <td width=100 bgcolor="#EEEEEE"><a href="<?= $objectlo[4]; ?>"><?= $objectlo[1]; ?></a></td><td width"539 bgcolor="#EEEEEE"><?= $objectlo[2]; ?>"</td></tr> "; }} ?></table><br><? }} ?>
Dit is al íets beter:p |