how do i show the author's posts only.
example i clicked the author "Nicholas" it goes to a page that shows all the posts made by "Nicholes"
displaying authors only.
Moderator: General Moderators
So, you want help on how to make a blog?
Try here:
http://www.asp-php.net/ressources/liens.aspx?id=1079
Try here:
http://www.asp-php.net/ressources/liens.aspx?id=1079
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
it will require somthing like this
this is all thinking that your table layout is a certain way and whatnot. we would really need to see some code to make it really work for you.
Code: Select all
$sql = '
SELECT
*
FROM
table_name_goes_here
WHERE
author = "'.$author_that_was_selected.'"
';
$query = mysql_query($sql) or die(mysql_error());
while ($info = mysql_fetch_assoc($query))
{
//display all of their messages or do whatever you want here.
}