[email protected]
New Member
- Joined
- Nov 27, 2007
- Messages
- 17
- Reaction score
- 0
Hello dear otland users!
I've got problem with gesior simple forum ( http://otland.net/f118/simple-forum-script-48548/ )
This script should work, but it gives me following error when i try to open localhost/forum.php
Here's the code at line 128
And yes, I've made tables correctly, it's not fault of tables. My php - 5.2.11, I'm using XAMPP.
I've got problem with gesior simple forum ( http://otland.net/f118/simple-forum-script-48548/ )
This script should work, but it gives me following error when i try to open localhost/forum.php
Fatal error: Call to a member function query() on a non-object in C:\xampp\htdocs\forum.php on line 128
Here's the code at line 128
PHP:
$info = $SQL->query("SELECT `section`, COUNT(`id`) AS 'threads', SUM(`replies`) AS 'replies' FROM `z_forum` WHERE `first_post` = `id` GROUP BY `section`")->fetchAll();
And yes, I've made tables correctly, it's not fault of tables. My php - 5.2.11, I'm using XAMPP.