Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Nuke Treasury
Author Message
bugsTHoR
Involved
Involved



Joined: Apr 05, 2006
Posts: 263

PostPosted: Sun Jan 18, 2009 3:14 am Reply with quote

when i click on the treasury Icon in the administration
i managed to fix my other problems with it thanks to help offerd before. but could not find an answer to this problem.

i get this error message
Code:


Fatal error: Call to undefined function sql_query() in /home/oqhxyrwk/public_html/gamersmad.com/admin/modules/treasury.php on line 25

and i look in the treasury.php on line 25 it says this

Code:


$result = sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);


its a seperate DB like is sugested for easier backup , but how come its not finding my god authers account in the other DB
im using ravens current version just so you know 2.30

sorry if this has been answerd i could not find it

_________________
LUV RAVEN DISTROBUTION BEBE

Clanthemes.com are great (free advertisements for now until i get to 20,000 posts LoL) 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sun Jan 18, 2009 1:52 pm Reply with quote

This is due to the $dbi issue that has been discussed in the forums. Please refer to the sticky which talks about how to convert to the new SQL layer.
 
View user's profile Send private message
Doulos
Life Cycles Becoming CPU Cycles



Joined: Jun 06, 2005
Posts: 732

PostPosted: Mon Jan 19, 2009 3:14 pm Reply with quote

Code:


I have changed lines 25 and 26$result = sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
list($radminsuper) = sql_fetch_row($result, $dbi);:


To this:
Code:
$result = sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'");

list($radminsuper) = sql_fetchrow($result);


I also changed all other instances of $dbi to $db and I still am getting this error:
Quote:
Fatal error: Call to undefined function sql_query() in /home/clanfga/public_html/admin/modules/treasury.php on line 25


The only way I am able to get this working is to comment out lines 25 and 26.

EDITED BY PALBIN - fixed code tag
 
View user's profile Send private message
jakec







PostPosted: Mon Jan 19, 2009 3:17 pm Reply with quote

You are missing the $db-> in the queries above.
 
Doulos







PostPosted: Mon Jan 19, 2009 3:20 pm Reply with quote

grr, I was looking at the examples and still missed it.
 
jakec







PostPosted: Mon Jan 19, 2009 3:21 pm Reply with quote

I've done exactly the same thing. Laughing
 
bugsTHoR







PostPosted: Tue Jan 20, 2009 9:18 am Reply with quote

$result = sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'", $db);
list($radminsuper) = sql_fetch_row($result, $db);:

is this what im after as this does not do the trick either
 
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Tue Jan 20, 2009 10:14 am Reply with quote

Refer to Only registered users can see links on this board! Get registered or login! and jakec reply.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
bugsTHoR







PostPosted: Tue Jan 20, 2009 11:28 am Reply with quote

sorry maybe im mising something but i followed it to the letter and changed all refrence to DB in the file from dbi , no worky worky
i blanked it out with // and it does work fine wether it still going to work ok i have no idea.

anyhoos ty
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue Jan 20, 2009 12:33 pm Reply with quote

bugsTHoR wrote:
sorry maybe im mising something but i followed it to the letter and changed all refrence to DB in the file from dbi , no worky worky
i blanked it out with // and it does work fine wether it still going to work ok i have no idea.

anyhoos ty


It should read:

Code:
$result = $db->sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'");

list($radminsuper) = $db->sql_fetchrow($result);
 
View user's profile Send private message
bugsTHoR







PostPosted: Tue Jan 20, 2009 6:44 pm Reply with quote

TY all
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Nuke Treasury

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©