mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
MySQL compatibility update of MSSQL compability.
git-svn-id: file:///svn/phpbb/trunk@71 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
4b809856ac
commit
864262c2ab
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ if(!isset($start))
|
|||
$start = 0;
|
||||
}
|
||||
|
||||
$sql = "SELECT t.*, u.username, p.post_time FROM " . TOPICS_TABLE ." t JOIN ". USERS_TABLE. " u ON t.topic_poster = u.user_id LEFT JOIN ".POSTS_TABLE." p ON p.post_id = t.topic_last_post_id WHERE t.forum_id = '$forum_id' ORDER BY topic_time DESC LIMIT $start, $topics_per_page";
|
||||
$sql = "SELECT t.*, u.username, p.post_time FROM " . TOPICS_TABLE ." t INNER JOIN ". USERS_TABLE. " u ON t.topic_poster = u.user_id LEFT JOIN ".POSTS_TABLE." p ON p.post_id = t.topic_last_post_id WHERE t.forum_id = '$forum_id' ORDER BY topic_time DESC LIMIT $start, $topics_per_page";
|
||||
if(!$t_result = $db->sql_query($sql))
|
||||
{
|
||||
error_die($db, QUERY_ERROR);
|
||||
|
|
Loading…
Add table
Reference in a new issue