i have a file where are displayed the post titles, i want that the post's content to be displayed in a single php file like "article.php?id=".I just want some help how to do this using post's id.
On the page where you display the titles, you will use <a href='article.php?id={$id}'>
to wrap the titles. Remember that the $id
should be unique for each title. Clicking the anchor should take the user to article.php, on the page, get the id from the url and query your database for the article. e.g
//Get the id first
$id = mysql_real_escape_string($_GET['id']);
//Then query your database for the article
$result = mysql_query("SELECT article FROM article_tbl WHERE id = '$id'");
Hope this helps.