Basically I want to get the 10 last topics that were replied to from phpBB 2 and display them on a page outside of phpBB.
I know there is a lot of information about how to do this for phpBB 3 but there seems to be none for phpBB 2. Is it possible? If so can you point me in the right direction?
I have tied doing it before but constantly get the following:
- Code: Select all
Call to a member function sql_query() on a non-object
referring to this line:
- Code: Select all
$result = $db->sql_query( "SELECT ....
Even though I do have the global $db as in:
- Code: Select all
global $prefix, $db, $sitename, $admin; $HideViewReadOnly = 1; $Last_New_Topics = 10; $show = " <tr> <td height=\"10\" colspan=\"6\" align=\"center\"> </td> </tr> </table></td> </tr> </table></td> </tr> </table>"; $Count_Topics = 0; $Topic_Buffer = ""; $result = $db->sql_query( "SELECT