Nieuw lid |
|
Hehe bedankt voor je hulp, ik heb 't zo opgelost:
<table width="492" border="0" align="center" cellpadding="0" cellspacing="0" style="border-bottom:1px solid #a7a6ac; border-left:1px solid #a7a6ac; border-right:1px solid #a7a6ac; border-bottom:1px solid #a7a6ac;">
<tr>
<td width="4" height="23" style="border-left:0px solid #a7a6ac; border-right:0px solid #a7a6ac; border-bottom:1px solid #a7a6ac;" background="images/block.gif"></td><?php
$nid = $_GET['nid'];
$nws = mysql_query("SELECT * FROM nieuws WHERE id = '$nid'") or die(mysql_error());
$aantal = mysql_num_rows($nws);
if ($aantal == '0'){
echo "Rong id";
}
else{
while ($x = mysql_fetch_object($nws)){
$id=$x->id;
$onderwerp=$x->onderwerp;
$inhoud=$x->inhoud;
$gebruiker=$x->gebruiker;
$tijddatum=$x->tijddatum;
$ip=$x->ip;
$categorie=$x->categorie;
$meerinhoud=$x->meerinhoud;
}
?>
<td width="488" style="border-left:0px solid #a7a6ac; border-right:0px solid #a7a6ac; border-bottom:1px solid #a7a6ac;" background="images/block.gif"><b><span class="style1"><?php echo $onderwerp; ?></span></b></td>
</tr>
<tr>
<td height="27" colspan="3" align="left" valign="top" bgcolor="#f5f5f5">
<table width="492" border="0" cellspacing="4" cellpadding="0">
<tr>
<td width="484"><table width="484" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="429" align="left" valign="top"><table width="404" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="98"><strong class="zwartdik">Posted by: </strong> </td>
<td width="386" class="zwart"><?php echo $ip; ?></td>
</tr>
<tr>
<td><strong class="zwartdik">Posted on: </strong></td>
<td class="zwart"><?php echo $tijddatum; ?></td>
</tr>
<tr>
<td><strong class="zwartdik">Category:</strong></td>
<td class="zwart"><?php echo $categorie; ?></td>
</tr>
<tr> </tr>
</table>
<?php
$inhoud = ubbparser_cmt($inhoud);
$inhoud = nl2br($inhoud);
echo "<div class='zwart'>" . $inhoud . "</div>";
?></td>
<td width="55" align="right" valign="top"><a href="?p=Commentaar&nid=<?php echo $id; ?>"></a></td>
</tr>
</table>
<hr width="470">
<?php
$meerinhoud = ubbparser_cmt($meerinhoud);
$meerinhoud = nl2br($meerinhoud);
echo "<div class='zwart'>" . $meerinhoud. "</div>";
?>
<br />
<br />
<div style="font-size:9px; font-family:Verdana, Arial, Helvetica, sans-serif;">
<div align="right"></div>
</div></td>
</tr>
</table>
</div></td>
</tr>
</table>
<?php
}
?>
<table width="492" border="0" align="center" cellpadding="0" cellspacing="0" style="border-bottom:1px solid #a7a6ac; border-left:1px solid #a7a6ac; border-right:1px solid #a7a6ac; border-bottom:1px solid #a7a6ac;"> <tr> <td width="4" height="23" style="border-left:0px solid #a7a6ac; border-right:0px solid #a7a6ac; border-bottom:1px solid #a7a6ac;" background="images/block.gif"></td><?php $nid = $_GET['nid']; if ($aantal == '0'){ } else{ $id=$x->id; $onderwerp=$x->onderwerp; $inhoud=$x->inhoud; $gebruiker=$x->gebruiker; $tijddatum=$x->tijddatum; $ip=$x->ip; $categorie=$x->categorie; $meerinhoud=$x->meerinhoud; } ?> <td width="488" style="border-left:0px solid #a7a6ac; border-right:0px solid #a7a6ac; border-bottom:1px solid #a7a6ac;" background="images/block.gif"><b><span class="style1"> <?php echo $onderwerp; ?></span></b></td> </tr> <tr> <td height="27" colspan="3" align="left" valign="top" bgcolor="#f5f5f5"> <table width="492" border="0" cellspacing="4" cellpadding="0"> <tr> <td width="484"><table width="484" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="429" align="left" valign="top"><table width="404" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="98"><strong class="zwartdik">Posted by: </strong> </td> <td width="386" class="zwart"> <?php echo $ip; ?></td> </tr> <tr> <td><strong class="zwartdik">Posted on: </strong></td> <td class="zwart"> <?php echo $tijddatum; ?></td> </tr> <tr> <td><strong class="zwartdik">Category:</strong></td> <td class="zwart"> <?php echo $categorie; ?></td> </tr> <tr> </tr> </table> <?php $inhoud = ubbparser_cmt($inhoud); $inhoud = nl2br($inhoud); echo "<div class='zwart'>" . $inhoud . "</div>"; ?></td> <td width="55" align="right" valign="top"><a href="?p=Commentaar&nid= <?php echo $id; ?>"></a></td> </tr> </table> <hr width="470"> <?php $meerinhoud = ubbparser_cmt($meerinhoud); $meerinhoud = nl2br($meerinhoud); echo "<div class='zwart'>" . $meerinhoud. "</div>"; ?> <br /> <br /> <div style="font-size:9px; font-family:Verdana, Arial, Helvetica, sans-serif;"> <div align="right"></div> </div></td> </tr> </table> </div></td> </tr> </table> <?php } ?>
|