מה הבעיה בקוד הזה שהוא לא מציג לפי Id
PHP קוד:
<?
include "config.php";
$query = mysql_query("SELECT poster, text, title, date, avter, id FROM topics where id");
while($array = mysql_fetch_array($query)) {
echo "<br> <table border='1' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='359' height='127' id='AutoNumber1'>
<tr>
<td width='353' height='15' bgcolor='#66ccff' colspan='2'> <div align='right'> כותרת : ".$array["title"]." | תאריך : ".$array["date"]."</td>
</tr>
<tr>
<td width='100' height='108' bgcolor=#fffff>השולח :<br>".$array["poster"]."<br><br> <a href='remove.php?id=".$array["id"].">מחק </a> | <a href='edit.php?id=".$array["id"].">ערוך </a></td>
<td width='253' height='108'>".$array["text"]."<br><br><br> ----------------------------------------- <br>".$array["avter"]."</td>
</table>";
}
?>
<?php
mysql_close();
?>