On my items list page, I use the following code::::::::::::::::::::::::
<?php [...snip...]
$str_requete = "SELECT id,title,author FROM Article WHERE display='yes' ORDER BY date DESC";
$result_articles = mysql_query ($str_requete,$ezine_db) or ezine_mysql_die();
print ('<table>');
while ($articleDb =mysql_fetch_object($result_articles))
{
print("
<tr>
<td>$articleDb->id</td>
<td>$articleDb->title</td>
<td> <I>par $articleDb->author</I></td>
<td><a href='detail.php?id=$articleDb->id'>Read the poem</a></td>
</tr>
");
}
print ('</table>');
?>
This works fine:::::::::::::::::::::::::::
QUESTION:
How can I retrive just ONE record on my details page rather than showing the details for ALL of the records in the DB.
What do I do to modify this line:
"
$str_requete = "SELECT id,title,author FROM Article WHERE display='yes' ORDER BY date DESC";
"
How can I modify the above script to show the specific article by the ID number that is passed in the URL
???
THANKS A MILLION.