Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
agentorange
Hangin' Around



Joined: May 15, 2008
Posts: 27

PostPosted: Tue Aug 25, 2009 1:33 pm Reply with quote

I am running 7.7 and was trying to have my donation block show what we have to data in donations.

When I checked out the Nuke Treasury mod and got this error

NukeTreasury FATAL ERROR: Unable to connect to SQL database. Please check your settings in modules/Donations/config.php

NukeTreasury FATAL ERROR: Unable to connect to SQL database. Please check your settings in modules/Donations/config.inc.php

Here is the config.inc.php file:

/* Database configuration */
$hostname_ipnppd = "localhost";
$database_ipnppd = "";
$username_ipnppd = "";
$password_ipnppd = "";

$board_config = array();
global $ipnppd;

$ipnppd = mysql_pconnect($hostname_ipnppd, $username_ipnppd, $password_ipnppd);
if( $ipnppd )
{
mysql_select_db($database_ipnppd, $ipnppd);
$query_cfg = "SELECT * FROM config WHERE subtype = ''";
$cfgset = mysql_query($query_cfg, $ipnppd);

while ( $cfgset && $row = mysql_fetch_assoc($cfgset))
{
$tr_config[$row['name']] = $row['value'];
}
} else
{
echo "<br><br>NukeTreasury FATAL ERROR: Unable to connect to SQL database. Please check your settings in modules/Donations/config.php<br><br>";
}

?>

Any idea's????

Thanks
 
View user's profile Send private message
wHiTeHaT
Life Cycles Becoming CPU Cycles



Joined: Jul 18, 2004
Posts: 579

PostPosted: Tue Aug 25, 2009 1:52 pm Reply with quote

yes... fill the data what is asked.

Quote:
/* Database configuration */
$hostname_ipnppd = "localhost";
$database_ipnppd = "";
$username_ipnppd = "";
$password_ipnppd = "";
 
View user's profile Send private message Send e-mail
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Thu Aug 27, 2009 5:58 am Reply with quote

...and, if you have put the NukeTreasury tables inside your PHP-Nuke database, the connection information would be the same as that within config.php.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
agentorange







PostPosted: Thu Aug 27, 2009 6:39 am Reply with quote

Thanks for the help folks I think it's working now...

Cheers
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

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 ©