<?php
include "check.php";
?>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Reacties(s)</title>
<style type=text/css>
@import url(/style.css);
</style>
</head>
<?php
$obj = mysql_fetch_object(mysql_query("SELECT * FROM users WHERE id = '$id'"));
$username = $obj->user;
?>
<body bgcolor="#000080">
<div align="left">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="76" id="AutoNumber1">
<tr>
<td width="13%" height="76" bgcolor="#000080"> </td>
<td width="68%" height="76" bgcolor="#006699"><br><centeR><font class=text2>Reactie(s) op het profiel van <?php echo"$username";?></font></center><br>
<center><font class=text2>----------------------------------------------------------------------</font></center>
<br>
<?php
$result= mysql_query('SELECT user, bericht, datum FROM `reacties` WHERE `tid` = "$id" ORDER BY datum DESC ;');
while($row=mysql_fetch_array($result)){
echo "$row[bericht]";
echo "$row[datum]<br>";
}
?></td><br>
<td width="19%" height="76" bgcolor="#000080"> </td>
</tr>
</table>
</div>
</body>
</html>
Dit werkt niet maar als ik in plaats van $id in de MYSQL regel 1 invoer doet ie het wel maar als ik naar reactie.php?id=1 ga doet hij het niet:(
478 views