Current time: 05-24-2012, 06:16 AM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Showthread nextoldest SQL error
08-18-2008, 03:53 PM
Post: #1
[F] Showthread nextoldest SQL error
SQL Error:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''29834 ORDER BY dateline DESC LIMIT 0, 1' at line 1
Query:
SELECT pid FROM posts WHERE tid='29834 ORDER BY dateline DESC LIMIT 0, 1

In showthread.php, find:
PHP Code:
$query $db->simple_select("posts""pid""tid='{$nextthread['tid']}"$options); 
Replace with:
PHP Code:
$query $db->simple_select("posts""pid""tid='{$nextthread['tid']}'"$options); 

Dennis Tsang :: MyBB Developer
Follow me on Twitter: @dennistt
Visit this user's website Find all posts by this user
08-19-2008, 09:39 AM
Post: #2
[F] Showthread nextoldest SQL error
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.
Visit this user's website Find all posts by this user


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication