Hello,
I'm making a message board and what I want to do is make all posts with a new reply to the top of the board, just like tek-tips.com. For the mysql part, here's what I have:
$sql = <<EOF;
select * from boards where bid = '$f'
order by pid desc
EOF
pid is the post id. If I put something like 'order by replies desc', the new posts with 0 replies will go down instead of going to the top.
I was wondering if anyone have any suggestions on how to do this. Thanks again and let me know if you need more info. There is no Knowledge that is not power.
Age: 16
E-mail: projectnet01@yahoo.com
School: Coral Springs High (Companynot done yet)
Status: Currently working with C++ for game developing. And making a musical band.
-Aaron
I'm making a message board and what I want to do is make all posts with a new reply to the top of the board, just like tek-tips.com. For the mysql part, here's what I have:
$sql = <<EOF;
select * from boards where bid = '$f'
order by pid desc
EOF
pid is the post id. If I put something like 'order by replies desc', the new posts with 0 replies will go down instead of going to the top.
I was wondering if anyone have any suggestions on how to do this. Thanks again and let me know if you need more info. There is no Knowledge that is not power.
Age: 16
E-mail: projectnet01@yahoo.com
School: Coral Springs High (Companynot done yet)
Status: Currently working with C++ for game developing. And making a musical band.
-Aaron