PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
bugsTHoR
Worker
Worker


Joined: Apr 05, 2006
Posts: 211

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

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
View user's profile Send private message Visit poster's website
jakec
Site Admin


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

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

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
Involved
Involved


Joined: Jun 06, 2005
Posts: 454

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

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
Site Admin


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

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

You are missing the $db-> in the queries above.
View user's profile Send private message
Doulos
Involved
Involved


Joined: Jun 06, 2005
Posts: 454

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

grr, I was looking at the examples and still missed it.
View user's profile Send private message
jakec
Site Admin


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

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

I've done exactly the same thing. Laughing
View user's profile Send private message
bugsTHoR
Worker
Worker


Joined: Apr 05, 2006
Posts: 211

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

$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
View user's profile Send private message Visit poster's website
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 1520
Location: Pennsylvania

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

Refer to
Only registered users can see links on this board!
Get registered or login to the forums!
and jakec reply.
View user's profile Send private message Visit poster's website
bugsTHoR
Worker
Worker


Joined: Apr 05, 2006
Posts: 211

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

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
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16650
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
bugsTHoR
Worker
Worker


Joined: Apr 05, 2006
Posts: 211

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

TY all
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2010 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum