xiofire
06-13-2009, 03:38 PM
I'm in a jam. I'm working on new profiles for my members, but I'm having a "Forum Activity" problem.
http://content.screencast.com/users/xiofire/folders/Jing/media/51511e1a-99bd-4dbc-a429-b3e5182d5835/2009-06-13_1215.png
Now, if you notice, the threads were all replied to on the same date, today.
And say there was a thread from yesterday, June 12. It would appear under the June 13 threads, but the problem is, I replied to the thread "Hi Everyone! xD" last, and the thread "I can has admin!" First, and I want it to be the other way around.
I hope I explained this well enough. Here is the code.
<table border="0" cellspacing="5" cellpadding="2">
<?php
$pro1="SELECT * FROM censored WHERE a_user_id='$profile' ORDER BY a_date DESC LIMIT 5";
$pro2=mysql_query($pro1);
while($pro=mysql_fetch_array($pro2)) {
?>
<tr><td><a href="thread.php?id=<?=$pro['question_id']?>"><?=$pro['a_topic']?></a> <small><em><?=$pro['a_date']?></em></small></td></tr>
<?php
}
?>
</table>
I tried to order it by id and date, nothing. I tried to change it to ASC, and it took me back to my first post.
Any help?
http://content.screencast.com/users/xiofire/folders/Jing/media/51511e1a-99bd-4dbc-a429-b3e5182d5835/2009-06-13_1215.png
Now, if you notice, the threads were all replied to on the same date, today.
And say there was a thread from yesterday, June 12. It would appear under the June 13 threads, but the problem is, I replied to the thread "Hi Everyone! xD" last, and the thread "I can has admin!" First, and I want it to be the other way around.
I hope I explained this well enough. Here is the code.
<table border="0" cellspacing="5" cellpadding="2">
<?php
$pro1="SELECT * FROM censored WHERE a_user_id='$profile' ORDER BY a_date DESC LIMIT 5";
$pro2=mysql_query($pro1);
while($pro=mysql_fetch_array($pro2)) {
?>
<tr><td><a href="thread.php?id=<?=$pro['question_id']?>"><?=$pro['a_topic']?></a> <small><em><?=$pro['a_date']?></em></small></td></tr>
<?php
}
?>
</table>
I tried to order it by id and date, nothing. I tried to change it to ASC, and it took me back to my first post.
Any help?