![]() |
Quote:
Code:
SELECT postuserid,postusername,replycount FROM thread WHERE forumid=14 ORDER BY replycount DESC LIMIT 10 |
ok that worked i dont get error any more
but in the templates when i add $top10thread it doesnt show any thing i also tried $top10thread[posts] |
OK, before we go any further. What exactly are you trying to do? What do you want a top ten list of?
|
Well until my forum is back up I'm kind of guessing here, but try this.
PHP Code:
|
v
|
Database error in vBulletin 2.2.4:
Invalid SQL: SELECT postuserid,forumid,postusername,posts FROM thread WHERE forumid = # ORDER BY posts DESC LIMIT 10 mysql error: You have an error in your SQL syntax near '' at line 1 |
»
» is what i get were i inserted the $top10post and $top10name |
Well the "forumid = #" part you have to put in the number of the forum id you want it to use.
|
i did and i got the above..... is there any way you can just make the first hack on the back on the first page incorperate into the second hack?
|
All times are GMT. The time now is 03:08 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|