Forums
-
- Forum
- Posts
-
- Installation
- 28,436
- Troubleshooting
- 62,522
- Themes
- 10,431
- Plugins
- 15,340
- Requests & Feedback
- 14,964
- Showcase
- 3,256
-
Oh that’s a simple bug, I forgot the quotes around the time:
$query="SELECT count(topic_id) as position FROM $bbdb->topics WHERE forum_id=$forum_id and topic_time<='$topic->topic_time' ORDER BY topic_time DESC";
$position = $bbdb->get_var($query);