Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-26-2007, 03:40 PM
-Tigger- is offline -Tigger-
BB

Join Date: Jul 2003
Posts: 5,341

need help setting up a php block

well im stuck lol

trying to setup a donations block for a website, but i get a SQL error when i try to access it in admin area saying

Quote:
NukeTreasury FATAL ERROR: Unable to connect to SQL database. Please check your settings in modules/Donations/config.php
PHP Code:
<?php
/************************************************************************/
/* NukeTreasury - Financial management for PHP-Nuke                      */
/* Copyright (c) 2004 by Dave Lawrence AKA Thrash                       */
/*                       [email]thrash@fragnastika.com[/email]                         */
/*                       [email]thrashn8r@hotmail.com[/email]                          */
/*                                                                      */
/* This program is free software; you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/*                                                                      */
/* This program is distributed in the hope that it will be useful, but  */
/* WITHOUT ANY WARRANTY; without even the implied warranty of           */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU     */
/* General Public License for more details.                             */
/*                                                                      */
/* You should have received a copy of the GNU General Public License    */
/* along with this program; if not, write to the Free Software          */
/* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  */
/* USA                                                                  */
/************************************************************************/

/* Database configuration */
$hostname_ipnppd "localhost";
$database_ipnppd "ipnppd";
$username_ipnppd "username";
$password_ipnppd "password";

$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>";
}

?>
it wud b gr8 if sum1 could help me set this up, in an easy way, cos ive tried and its just not going my way
Reply With Quote
  #2  
Old 07-26-2007, 04:21 PM
IcIshoot is offline IcIshoot

Join Date: Mar 2004
Location: Farmington Hills, MI
Posts: 1,473

Send a message via AIM to IcIshoot Send a message via MSN to IcIshoot Send a message via Yahoo to IcIshoot
You need to fill out the info under database configuration.


take a look at your nuke config.php file


IcI
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help finding a php block -Tigger- Web design and Programming 0 07-27-2007 06:43 AM
.flv php block? -Tigger- Web design and Programming 12 05-14-2007 08:20 AM
PHP Nuke Block - Vote For Us UNP-Maximus Web design and Programming 4 05-04-2005 01:55 PM
Game Server Block For PHP Buzz Web design and Programming 1 02-02-2004 11:46 PM
PHP-Nuke / Chronos (new block) Shadow~tr~ Web design and Programming 0 05-27-2003 08:59 AM


All times are GMT -5. The time now is 06:56 PM.




Powered by vBulletin®