Jump to content

Need Help, Please. PHP Won't Grab Data?


Guest

Recommended Posts

Ok, so basically I have every column in the link below to work right and have the data for each column displayed....except for "Person" column.

 

http://trigamer.com/forums/newest.php?fid=1

 

If you check there, you can see the posts, but not the poster.  I'm thinking the 7th line from the bottom is the issue?  Below is the PHP code for that section:

 

<!-- list threads-->
					<?php if($threads) {?>
					<tbody>
						<?php while($thread = mysql_fetch_array($threads) ){
							#get last user to post
							$last_user = fetch("SELECT user FROM posts WHERE tid = ".$thread["tid"]." ORDER BY dateline DESC LIMIT 1");
							if(!$last_user) $last_user = array();
						?>
						<tr bgcolor="#202025">
							<td class="threadIcon"><img src="/images/posticon.png" /></td>
							<td class="threadTitle"><a href="replythread.php?tid=<?php echo $thread["tid"];?>"><?php echo $thread["title"];?></a></td>
							<td class="threadReplies"><font color=white><?php echo $thread["replies"];?></font></td>
							<td><font color=white><?php echo $last_user[0];?></font></td>
							<td><font color=white><?php echo date("m-d-Y",$thread["dateline"]);?></font></td>
						</tr>
						<?php } ?>
					</tbody>
					<?php }?>
					<!-- //end list threads-->

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.