Ekran sadece ID + satır PHP sorgulanan / MySQL

0 Cevap php

Ben her yeni satır için bir auto_increment kimlik numarası (benzersiz) içeren bir MySQL tabloda, benim veri depolamış.

Kullanıcıların $_GET işlevini kullanarak, belli bir kimlik numarası elde edebilmek istiyorum.

eg. User loads http://mysite.com/id.php?id=123
Page displays ID number 123 along with the row.

echo $row['id'];
echo "<table>";
echo "<tr> <th>Unit</th> <th>Message</th> <th>Date</th> </tr>";
while($row = mysql_fetch_array( $result )) {

echo "<tr><td>";
echo $row['title'];
echo "</td><td>";
echo $row['description'];
echo "</td><td>";
echo $row['pubDate'];
echo "</td></tr>";

}
echo "</table>";
echo "</center>";

Ben $_GET biraz koymak nereye kadar şaşırıp.

Teşekkürler :)

0 Cevap