Jump to content
MakeWebGames

Forums


Jake
 Share

Recommended Posts

Hey, im having some trobules with forums. I don't really know how to print a users level, and amount of forum posts next to their reply.

This is what i currently have:

$ab=mysql_query("SELECT * FROM forumposts WHERE postTHREAD={$_GET['thread']} ORDER BY postID ASC",$c);
$a=mysql_fetch_array($ab);
$reply=mysql_query("SELECT * FROM users WHERE userid={$a['postUSERID']}",$c);
$reply1=mysql_fetch_array($reply);

 

And then this is the table where it prints it:

 

{$r['postUSERNAME']}

Level:{$reply1['level']}

Posts:{$reply1['forumposts']}

{$r['postTEXT']} ";

 

This prints one person's level and posts for every bodys response.

Somebody help please

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...