Lid |
|
ik heb nu deze code
<?php
include("config.php");
$id = $HTTP_GET_VARS['id'];
$query = mysql_query("SELECT * FROM forumtopics WHERE id = '$id'") or die (mysql_error());
$row = mysql_fetch_object($query);
$sql2 = "SELECT * FROM users WHERE name='$row->door'";
$query2 = mysql_query($sql2);
$row1 = mysql_fetch_object($query2);
$row->bericht = str_replace(':angry', '<img src=Images/angry.gif border=0>', $row->bericht);
$row->bericht = str_replace(':D', '<img src=Images/biggrin.gif border=0>', $row->bericht);
$row->bericht = str_replace(':blink:', '<img src=Images/blink.gif border=0>', $row->bericht);
$row->bericht = str_replace(':blow:', '<img src=Images/blow.gif border=0>', $row->bericht);
$row->bericht = str_replace(':close:', '<img src=Images/closedeyes.gif border=0>', $row->bericht);
$row->bericht = str_replace(':blush:', '<img src=Images/blush.gif border=0>', $row->bericht);
$row->bericht = str_replace(':cool:', '<img src=Images/cool.gif border=0>', $row->bericht);
$row->bericht = str_replace(':dry:', '<img src=Images/dry.gif border=0>', $row->bericht);
$row->bericht = str_replace(':happy:', '<img src=Images/happy.gif border=0>', $row->bericht);
$row->bericht = str_replace(':huh:', '<img src=Images/huh.gif border=0>', $row->bericht);
$row->bericht = str_replace(':huil:', '<img src=Images/huil2.gif border=0>', $row->bericht);
$row->bericht = str_replace(':laugh:', '<img src=Images/laugh.gif border=0>', $row->bericht);
$row->bericht = str_replace(':mellow:', '<img src=Images/mellow.gif border=0>', $row->bericht);
$row->bericht = str_replace(':ninja:', '<img src=Images/ninja.gif border=0>', $row->bericht);
$row->bericht = str_replace(':ohmy:', '<img src=Images/ohmy.gif border=0>', $row->bericht);
$row->bericht = str_replace(':rolleyes:', '<img src=Images/rolleyes.gif border=0>', $row->bericht);
$row->bericht = str_replace(':sad:', '<img src=Images/sad.gif border=0>', $row->bericht);
$row->bericht = str_replace(':sleep:', '<img src=Images/sleep.gif border=0>', $row->bericht);
$row->bericht = str_replace(':)', '<img src=Images/smile.gif border=0>', $row->bericht);
$row->bericht = str_replace(':tongue:', '<img src=Images/tongue.gif border=0>', $row->bericht);
$row->bericht = str_replace(':unsure:', '<img src=Images/unsure.gif border=0>', $row->bericht);
$row->bericht = str_replace(':wacko:', '<img src=Images/wacko.gif border=0>', $row->bericht);
$row->bericht = str_replace(':wink:', '<img src=Images/wink.gif border=0>', $row->bericht);
$bericht2 = nl2br($row->bericht);
?>
<tr>
<?
if ($row1->avatar != "") {
?>
<td width="18%" align="left" valign="top"><div align="top"><font size='2' type='Arial' color='#FFFFFF'> </div><? echo"<b>$row->door</b><br><font size='1' type='Arial' color='#000000'> <i>$row1->titel</i><br>
<img src='$row1->avatar' border='0' align='top'>"; ?>
<?
} else{
?>
<td width="18%" align="left" valign="top"><div align="top"><font size='2' type='Arial' color='#FFFFFF'> </div><? echo"<b>$row->door</b><br><font size='1' type='Arial' color='#000000'> <i>$row1->titel</i><br>
<img src='graphics/forum/geenavatar.gif' border='0' align='top'> "; ?>
<br>
<?
if ($row1->sig != "") {
?>
<td width='100%' valign='top'>
<div align='left'><font size='2' type='Arial' color='#FFFFFF'> <b><? echo"$row->titel"; ?> <font size='1' type='Arial' color='#FFFFFF'></b> <? echo"$row->datum"; ?> <br>
<hr width='77%'>
<font size='1' type='Arial' color='#FFFFFF'><? echo"$bericht2"; ?> <br>
------------------------------------------------------<br>
<img src='<? echo"$row1->signature'"; ?> border='0'>
<hr width='77%'>
<br>
</div> </tr></table>
<br><?
if($sub=="reacties") {
include ('forumreacties.php'); }
if($sub=="reageer") {
include ('forumreageer.php'); }
?>
<?
} else{
?>
<td width='100%' valign='top'>
<div align='left'><font size='2' type='Arial' color='#FFFFFF'> <b><? echo"$row->titel"; ?> <font size='1' type='Arial' color='#FFFFFF'></b> <? echo"$row->datum"; ?> <br>
<hr width='77%'>
<font size='1' type='Arial' color='#FFFFFF'><? echo"$bericht2"; ?> <br>
<hr width='77%'>
<br>
</div> </tr></table>
<br><?
if($sub=="reacties") {
include ('forumreacties.php'); }
if($sub=="reageer") {
include ('forumreageer.php'); }
?>
<? }} ?>
<?php include("config.php"); $id = $HTTP_GET_VARS['id']; $sql2 = "SELECT * FROM users WHERE name='$row->door'"; $row->bericht = str_replace(':angry', '<img src=Images/angry.gif border=0>', $row->bericht); $row->bericht = str_replace(':D', '<img src=Images/biggrin.gif border=0>', $row->bericht); $row->bericht = str_replace(':blink:', '<img src=Images/blink.gif border=0>', $row->bericht); $row->bericht = str_replace(':blow:', '<img src=Images/blow.gif border=0>', $row->bericht); $row->bericht = str_replace(':close:', '<img src=Images/closedeyes.gif border=0>', $row->bericht); $row->bericht = str_replace(':blush:', '<img src=Images/blush.gif border=0>', $row->bericht); $row->bericht = str_replace(':cool:', '<img src=Images/cool.gif border=0>', $row->bericht); $row->bericht = str_replace(':dry:', '<img src=Images/dry.gif border=0>', $row->bericht); $row->bericht = str_replace(':happy:', '<img src=Images/happy.gif border=0>', $row->bericht); $row->bericht = str_replace(':huh:', '<img src=Images/huh.gif border=0>', $row->bericht); $row->bericht = str_replace(':huil:', '<img src=Images/huil2.gif border=0>', $row->bericht); $row->bericht = str_replace(':laugh:', '<img src=Images/laugh.gif border=0>', $row->bericht); $row->bericht = str_replace(':mellow:', '<img src=Images/mellow.gif border=0>', $row->bericht); $row->bericht = str_replace(':ninja:', '<img src=Images/ninja.gif border=0>', $row->bericht); $row->bericht = str_replace(':ohmy:', '<img src=Images/ohmy.gif border=0>', $row->bericht); $row->bericht = str_replace(':rolleyes:', '<img src=Images/rolleyes.gif border=0>', $row->bericht); $row->bericht = str_replace(':sad:', '<img src=Images/sad.gif border=0>', $row->bericht); $row->bericht = str_replace(':sleep:', '<img src=Images/sleep.gif border=0>', $row->bericht); $row->bericht = str_replace(':)', '<img src=Images/smile.gif border=0>', $row->bericht); $row->bericht = str_replace(':tongue:', '<img src=Images/tongue.gif border=0>', $row->bericht); $row->bericht = str_replace(':unsure:', '<img src=Images/unsure.gif border=0>', $row->bericht); $row->bericht = str_replace(':wacko:', '<img src=Images/wacko.gif border=0>', $row->bericht); $row->bericht = str_replace(':wink:', '<img src=Images/wink.gif border=0>', $row->bericht); $bericht2 = nl2br($row->bericht); ?> <tr> <? if ($row1->avatar != "") { ?> <td width="18%" align="left" valign="top"><div align="top"><font size='2' type='Arial' color='#FFFFFF'> </div> <? echo"<b>$row->door</b><br><font size='1' type='Arial' color='#000000'> <i>$row1->titel</i><br> <img src='$row1->avatar' border='0' align='top'>"; ?> <? } else{ ?> <td width="18%" align="left" valign="top"><div align="top"><font size='2' type='Arial' color='#FFFFFF'> </div> <? echo"<b>$row->door</b><br><font size='1' type='Arial' color='#000000'> <i>$row1->titel</i><br> <img src='graphics/forum/geenavatar.gif' border='0' align='top'> "; ?> <br> <? if ($row1->sig != "") { ?> <td width='100%' valign='top'> <div align='left'><font size='2' type='Arial' color='#FFFFFF'> <b> <? echo"$row->titel"; ?> <font size='1' type='Arial' color='#FFFFFF'></b> <? echo"$row->datum"; ?> <br> <hr width='77%'> <font size='1' type='Arial' color='#FFFFFF'> <? echo"$bericht2"; ?> <br> ------------------------------------------------------<br> <img src=' <? echo"$row1->signature'"; ?> border='0'> <hr width='77%'> <br> </div> </tr></table> <br><? if($sub=="reacties") { include ('forumreacties.php'); } if($sub=="reageer") { include ('forumreageer.php'); } ?> <? } else{ ?> <td width='100%' valign='top'> <div align='left'><font size='2' type='Arial' color='#FFFFFF'> <b> <? echo"$row->titel"; ?> <font size='1' type='Arial' color='#FFFFFF'></b> <? echo"$row->datum"; ?> <br> <hr width='77%'> <font size='1' type='Arial' color='#FFFFFF'> <? echo"$bericht2"; ?> <br> <hr width='77%'> <br> </div> </tr></table> <br><? if($sub=="reacties") { include ('forumreacties.php'); } if($sub=="reageer") { include ('forumreageer.php'); } ?> <? }} ?>
Maar hij komt niet verder dan het controleren op avatars.
Want hij laat namelijk alleen de avatar zien en niet het bericht enz wat erbij hoort. |