MyBB Community Forums
how to check post is the last post or not - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Development (https://community.mybb.com/forum-68.html)
+---- Thread: how to check post is the last post or not (/thread-65237.html)



how to check post is the last post or not - netjockey - 2010-02-21

Hello, Can You Tell me , How Do we Check the post is the last post or not

this is the Query for first post checking
Quote:$query = $db->simple_select("posts", "pid", "tid='{$tid}'", array("limit" => 1, "order_by" => "dateline", "order_dir" => "asc"));
$firstcheck = $db->fetch_array($query);

What will be the Query for Checking Last post

thanks in advance