Fatal error: Call to undefined function: db_query() in /home/nextgene/public_html/forum/TopicSolvedPdb.php on line 37
i got that when i try to install
Topic Solved MOD
i have to install this mod manually, so what do i do now?
You post your question on that mod's thread instead of starting a new thread.
i get this error for most the the mods that need db changes
$request = db_query("
SHOW COLUMNS
FROM {$db_prefix}messages
LIKE 'topicSolved'", __FILE__, __LINE__);
$need_add = mysql_num_rows($request) == 0;
if ($need_add)
db_query("
ALTER TABLE {$db_prefix}messages
ADD `topicSolved` TINYINT(4) DEFAULT '0' NOT NULL", __FILE__, __LINE__);
How do i perform this manually
Add this to the top of the file (right after the <?php tag):
include_once('SSI.php');
That will let you run the script manually.
well, i went to PHP MyAdmin and did it manually, now this is what i got
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 'AND ID_MSG != 2240' at line 3
File: /home/nextgene/public_html/forum/Sources/Post.php
Line: 2023
Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.7, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.
i tired to fix it and this is what i got
2: Missing argument 2 for db_query()
File: /home/nextgene/public_html/forum/Sources/Subs.php
Line: 216
does anyone know how
, __FILE__, __LINE__
means?
on my who's online thingy, it says
25 4 Spiders, Guests, 0 Buddies, 9 Users
how can i change it to say
4 Spiders, 25 Guests, 0 Buddies, 9 Users
or
25 Guests, 4 Spiders, 0 Buddies, 9 Users