liam1412 Posted January 12, 2007 Share Posted January 12, 2007 HiI am wanting a user to be able to bring up a list of threads they have posted in and also have an indicator at the side of threads that they have posted in on the main forum screen. How would I go about this.Thanks Link to comment https://forums.phpfreaks.com/topic/33892-ideas-on-how-to-go-about-keeping-a-list-of-threads-people-have-posted-in/ Share on other sites More sharing options...
Eddyon Posted January 12, 2007 Share Posted January 12, 2007 Try something like this:[code]$query = mysql_query("SELECT * FROM topics WHERE author = $userid");while($row=mysql_fetch_array($query)){$thread = $row['thread'];echo "$thread <br>";}[/code]This is just a general example with no real details of your project or databse structure so just build on it for what you need. Link to comment https://forums.phpfreaks.com/topic/33892-ideas-on-how-to-go-about-keeping-a-list-of-threads-people-have-posted-in/#findComment-159218 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.