Onbekend |
|
dit is het stukje dat telt:
<script language="javascript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=600,left = 212,top = 84');");
}
</script>
<?
//administratie :P
mysql_query('UPDATE onderwerpen SET gelezen=gelezen+1 WHERE id='.$_GET['id']);
//selecteer hoofdbericht
$sql = "SELECT * FROM onderwerpen WHERE id=".$_GET['id'];
$result = mysql_query($sql) or die(mysql_error());
$object = mysql_fetch_object($result);
//weergeef hoofdbericht
print('<table class="table_top" width="99%" background="layout/balk1.jpg" cellspacing="0" cellpadding="1">');
print('<tr><td width="*"> '.$object->titel.'</td><td align="right">'.$object->datum.'</td></tr></table>');
print('<table border="0" width="99%" cellpadding="3" cellspacing="0">');
print('<td width="106px" align="middle" class="table_lees_0" valign="top">');
print('<font style="font-face:Lucida Sans Unicode;font-size:11pt;font-weight:bold;color:black;">
<a href="index.php?pagina=profiel_bekijk&naam='.$object->naam.'">'.$object->naam.'</a><br></font>');
print('<img src="'.$object->avater.'">');
print('</td><td align="left" valign="top" class="table_lees_1">');
echo nl2br($object->inhoud);
print('</td></tr></table>');
print('<table border="0" cellpadding="0" cellspacing="0" width="99%">
<tr height="1"><td bgcolor="black"></td></tr></table>');
//selecteer reacties
$sql2 = "SELECT * FROM reacties1 WHERE re=".$_GET['id'];
$result2 = mysql_query($sql2) or die(mysql_error());
$object2 = mysql_fetch_object($result2);
//start lus
while ($object2 = mysql_fetch_object($result2)) {
//weergeef reacties
print('<table border="0" width="99%" cellpadding="3" cellspacing="0">');
print('<td width="106px" align="middle" class="table_lees_0" valign="top">');
print('<font style="font-face:Lucida Sans Unicode;font-size:11pt;font-weight:bold;color:black;"><a href="index.php?pagina=profiel_bekijk&naam='.$object2->naam.'">'.$object2->naam.'</a><br></font>');
print('<img src="'.$object2->avater.'">');
print('</td><td align="left" valign="top" class="table_lees_1">');
print('<table border="0" cellpadding="0" cellspacing="0" width="100%" class="table_text_2"><tr><td width="*">Re: '.$object->titel.'</td><td align="right"> '.$object2->datum.'</td></tr></table>');
print('<img src="layout/balk2.jpg" width="100%" height="1">');
echo nl2br($object2->inhoud);
print('</td></tr></table>');
print('<table border="0" cellpadding="0" cellspacing="0" width="99%">
<tr height="1"><td bgcolor="black"></td></tr></table>');
}
<script language="javascript"> function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=600,left = 212,top = 84');"); } </script> <? //administratie :P mysql_query('UPDATE onderwerpen SET gelezen=gelezen+1 WHERE id='.$_GET['id']); //selecteer hoofdbericht $sql = "SELECT * FROM onderwerpen WHERE id=".$_GET['id']; //weergeef hoofdbericht print('<table class="table_top" width="99%" background="layout/balk1.jpg" cellspacing="0" cellpadding="1">'); print('<tr><td width="*"> '.$object->titel.'</td><td align="right">'.$object->datum.'</td></tr></table>'); print('<table border="0" width="99%" cellpadding="3" cellspacing="0">'); print('<td width="106px" align="middle" class="table_lees_0" valign="top">'); print('<font style="font-face:Lucida Sans Unicode;font-size:11pt;font-weight:bold;color:black;"> <a href="index.php?pagina=profiel_bekijk&naam='.$object->naam.'">'.$object->naam.'</a><br></font>'); print('<img src="'.$object->avater.'">'); print('</td><td align="left" valign="top" class="table_lees_1">'); print('</td></tr></table>'); print('<table border="0" cellpadding="0" cellspacing="0" width="99%"> <tr height="1"><td bgcolor="black"></td></tr></table>'); //selecteer reacties $sql2 = "SELECT * FROM reacties1 WHERE re=".$_GET['id']; //start lus //weergeef reacties print('<table border="0" width="99%" cellpadding="3" cellspacing="0">'); print('<td width="106px" align="middle" class="table_lees_0" valign="top">'); print('<font style="font-face:Lucida Sans Unicode;font-size:11pt;font-weight:bold;color:black;"><a href="index.php?pagina=profiel_bekijk&naam='.$object2->naam.'">'.$object2->naam.'</a><br></font>'); print('<img src="'.$object2->avater.'">'); print('</td><td align="left" valign="top" class="table_lees_1">'); print('<table border="0" cellpadding="0" cellspacing="0" width="100%" class="table_text_2"><tr><td width="*">Re: '.$object->titel.'</td><td align="right"> '.$object2->datum.'</td></tr></table>'); print('<img src="layout/balk2.jpg" width="100%" height="1">'); print('</td></tr></table>'); print('<table border="0" cellpadding="0" cellspacing="0" width="99%"> <tr height="1"><td bgcolor="black"></td></tr></table>'); }
nou weet er niemand hoe ik dit op kan lossen? |