Fatal error: Call to undefined function: db_query() in /home/nextgene/public_htm

Started by MegaV1, May 21, 2006, 05:24:36 AM

Previous topic - Next topic

MegaV1

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?

kegobeer

You post your question on that mod's thread instead of starting a new thread.
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

MegaV1


MegaV1

$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

Oldiesmann

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.
Michael Eshom
Christian Metal Fans

MegaV1

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?

MegaV1

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

Advertisement: