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
natepizzle
New Member
New Member



Joined: Apr 20, 2006
Posts: 8

PostPosted: Mon Apr 24, 2006 8:52 am Reply with quote

Anyone want to rewrite this module for 7.9? I'm to lazy!


Last edited by natepizzle on Fri Apr 28, 2006 8:39 pm; edited 1 time in total 
View user's profile Send private message
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Mon Apr 24, 2006 9:34 am Reply with quote

What's this $dbi? Can you try the query without it and see what happens? Try leaving it out of the query and the result row.

Just have the query be:

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

No guarantee but that's what the code looks like in my admin.php.
 
View user's profile Send private message Visit poster's website
natepizzle







PostPosted: Mon Apr 24, 2006 5:59 pm Reply with quote

Guess that wasn't it.....it added another error!!


Last edited by natepizzle on Fri Apr 28, 2006 8:40 pm; edited 1 time in total 
fkelly







PostPosted: Mon Apr 24, 2006 6:25 pm Reply with quote

Sorry. I guess I don't know what it is then. Oh, I just took a look at sql_layer.php and on line 85 the code is for mssql not mysql. I realize that your file may not line up exactly like mine does (mine is from Ravennuke) but it's worth checking. I'm wondering if possibly you could have the wrong database type in config.php? There's a $dbtype variable there. That's just a wild guess though.
 
natepizzle







PostPosted: Mon Apr 24, 2006 6:59 pm Reply with quote

Nope Shocked


Last edited by natepizzle on Fri Apr 28, 2006 8:41 pm; edited 1 time in total 
fkelly







PostPosted: Mon Apr 24, 2006 8:18 pm Reply with quote

Well I am sure not helping much. I'm looking at the SQL layer thing again and the definition for the fetch_row goes like this:

case "MySQL":
$row = mysql_fetch_row($res);

So, if you want to try just one more thing, just have the $result be the parameter passed to that, leaving out the $dbi for that one but leaving it in the query itself.

The definition for the query is:

case "MySQL":
$res=@mysql_query($query, $id);

So that's where the $dbi comes in to play.

In other words you statement would be:

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

Like I say, I don't know but I sure don't see anything else that's obviously wrong.
 
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 ©