AAPDRDS:  automatic donation system menu

User Tag List

Results 1 to 6 of 6
  1. #1
    darkmagishin's Avatar Active Member
    Reputation
    16
    Join Date
    May 2008
    Posts
    190
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    AAPDRDS: automatic donation system

    anyone know what im doing wrong?


    THE ERROR

    Picture
















    Detailed
    Code:
    Notice: Use of undefined constant MYSQL_HOST - assumed 'MYSQL_HOST' in C:\wamp\www\donations\config.php on line 3
    
    Notice: Use of undefined constant MYSQL_USER - assumed 'MYSQL_USER' in C:\wamp\www\donations\config.php on line 4
    
    Notice: Use of undefined constant MYSQL_PASS - assumed 'MYSQL_PASS' in C:\wamp\www\donations\config.php on line 5
    
    Notice: Use of undefined constant MYSQL_DATA - assumed 'MYSQL_DATA' in C:\wamp\www\donations\config.php on line 6
    
    Notice: Use of undefined constant SITE_URL - assumed 'SITE_URL' in C:\wamp\www\donations\config.php on line 9
    
    Notice: Use of undefined constant SYS_PATH - assumed 'SYS_PATH' in C:\wamp\www\donations\config.php on line 10
    
    Notice: Use of undefined constant CURRENCY_CODE - assumed 'CURRENCY_CODE' in C:\wamp\www\donations\config.php on line 13
    
    Notice: Use of undefined constant CURRENCY_CHAR - assumed 'CURRENCY_CHAR' in C:\wamp\www\donations\config.php on line 14
    
    Notice: Use of undefined constant PAYPAL_URL - assumed 'PAYPAL_URL' in C:\wamp\www\donations\config.php on line 17
    
    Notice: Use of undefined constant PAYPAL_EMAIL - assumed 'PAYPAL_EMAIL' in C:\wamp\www\donations\config.php on line 18
    
    Notice: Use of undefined constant MAIL_SUBJECT - assumed 'MAIL_SUBJECT' in C:\wamp\www\donations\config.php on line 21
    
    Notice: Use of undefined constant MAIL_BODY - assumed 'MAIL_BODY' in C:\wamp\www\donations\config.php on line 22
    
    Notice: Use of undefined constant ACP_USERNAME - assumed 'ACP_USERNAME' in C:\wamp\www\donations\config.php on line 25
    
    Notice: Use of undefined constant ACP_PASSWORD - assumed 'ACP_PASSWORD' in C:\wamp\www\donations\config.php on line 26
    
    Notice: Undefined variable: DESCRIPTIONS in C:\wamp\www\donations\index.php on line 45

    my config file

    Code:
    <?php
    //Mysql Information. This is the information for the site's database, NOT your ascent server's.
    define(MYSQL_HOST,"localhost"); // The mysql host for your webserver.
    define(MYSQL_USER,"root"); // Mysql username
    define(MYSQL_PASS,"joejoe"); // Mysql password
    define(MYSQL_DATA,"donations"); // Database the donation tables are in.
    
    // Path information, EXTREMELY IMPORTANT that you do these right or this will not work.
    define(SITE_URL,"http://www.localhost/donations"); // COMPLETE url to your web site, NO TRAILING SLASH!
    define(SYS_PATH,"/donations/"); // Path to the directory this file is in, beginning with a slash.
    
    // Currency information.
    define(CURRENCY_CODE,"USD"); // Currency code to be used by PayPal.
    define(CURRENCY_CHAR,"$"); // Symbol representing your currency code.
    
    // PayPal information. Use 'www.sandbox.paypal.com' if you wish to test with the sandbox.
    define(PAYPAL_URL,"www.paypal.com"); // Only change this for sandbox testing.
    define(PAYPAL_EMAIL,"[email protected]"); // The account that donations will go to.
    
    // Mail information.
    define(MAIL_SUBJECT,"Thank You"); // Subject of the reward mail.
    define(MAIL_BODY,"Thank you for supporting our server! Here is your reward!"); // Mail message.
    
    //Misc
    define(ACP_USERNAME,"root"); // Username to access the ACP
    define(ACP_PASSWORD,"joejoe"); // Password to access the ACP
    ?>
    pic of the config file














    i also added the sql to the database but i think its connecting okay, because it shows the fields i added in the vote control panel, like items, realm, cost







    thanks for reading

    AAPDRDS:  automatic donation system
  2. #2
    pcrew's Avatar Member
    Reputation
    54
    Join Date
    Jun 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is a very simple solution to this

    Add this thing at the top of the page , and you will not see that Notices

    error_reporting (error_reporting (0) & ~ E_NOTICE);

  3. #3
    darkmagishin's Avatar Active Member
    Reputation
    16
    Join Date
    May 2008
    Posts
    190
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by pcrew View Post
    There is a very simple solution to this

    Add this thing at the top of the page , and you will not see that Notices

    error_reporting (error_reporting (0) & ~ E_NOTICE);
    holy cow! it worked :] :] thanks mate

  4. #4
    pelgas's Avatar Member
    Reputation
    1
    Join Date
    May 2007
    Posts
    29
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    but where on top lol

  5. #5
    waymirec's Avatar Member
    Reputation
    49
    Join Date
    Jan 2008
    Posts
    155
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hahaha.. yeah just turn off notice reporting because that fixes the problem. OR you could try actually fixing the problem which is often a much better solution. Put quotes around the first argument to the define function call.

    So for example change

    Code:
    define(MYSQL_HOST,"localhost");
    with

    Code:
    define("MYSQL_HOST","localhost");

  6. #6
    IloveWow4ever's Avatar Member
    Reputation
    1
    Join Date
    Mar 2007
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have a strange error with this too:

Similar Threads

  1. [Selling] Invision Automatic Donation System [ALL EMULATORS SUPPORTED]
    By Facebook in forum World of Warcraft Buy Sell Trade
    Replies: 4
    Last Post: 08-05-2010, 01:52 AM
  2. Donate system for mangos?
    By vicke in forum WoW EMU Questions & Requests
    Replies: 8
    Last Post: 05-14-2010, 10:19 AM
  3. [Request] Fixed AAPDRDS Donation System $$
    By Nallman in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 08-17-2009, 07:52 AM
  4. GM Donating System
    By ixiuz in forum World of Warcraft General
    Replies: 5
    Last Post: 03-14-2009, 05:41 PM
  5. Chaos WoW - Instant 80 - PvP Server - Vote System - Donation System - LOOK!
    By GraziServers in forum WoW Emulator Server Listings
    Replies: 0
    Last Post: 02-24-2009, 06:58 PM
All times are GMT -5. The time now is 11:07 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search