daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Jun 8th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (error on line 20)
  2.  
  3. <?php
  4.  
  5. // MySQL Connection Info for Spot Prices ROOT
  6.  
  7. // Connection Variables:
  8. $DB_USERNAME = "thenerdt_sptroot";
  9. $DB_PASSWORD = "*******";
  10. $DB_HOST = "localhost";
  11.  
  12. // Create The Connection:
  13. $DB_CONNECT = mysql_connect($DB_HOST, $DB_USERNAME, $DB_PASSWORD)
  14.   or die("Unable to connect to MySQL Database using username $DB_USERNAME");
  15.  
  16.  
  17. // Selected DB:
  18. $DB_SELECTION = mysql_select_db("thenerdt_spotdb", $DB_CONNECT)
  19.   or die("Unable to select MySQL Database thenerdtv_spotdb");
  20.  
  21.  
  22. $itemsArray = array("gold_misccoin_1oz","gold_buffalo","gold_misccoin_1-2oz","gold_misccoin_1-4oz","gold_misccoin_1-10oz","gold_misccoin_1-25oz","gold_eagle_1oz","gold_eagle_1-2oz","gold_eagle_1-4oz","gold_eagle_1-10oz","gold_eagle_proof_1oz","gold_modern_us_5dollar","gold_modern_us_10dollar","gold_marktwain_1oz","gold_robertfrost_1oz","gold_johnsteinbeck_1-2oz","gold_20dollar_liberty_au","gold_10dollar_liberty_vf","gold_10dollar_liberty_unc","gold_5dollar_liberty_vf","gold_21-2dollar_liberty_vf","gold_1dollar_ty1_vf","gold_buffalo_proof_1oz","gold_csjm_1oz_bar","gold_mapleleaf_1oz","gold_maple_1oz_999impaired","gold_mapleleaf_1-2oz","gold_mapleleaf_1-4oz","gold_mapleleaf_1-10oz","gold_krugerrand_1oz","gold_krugerrand_1-2oz","gold_krugerrand_1-4oz","gold_krugerrand_1-10oz","gold_germany_10mark","gold_germany_20mark","gold_belgium_20franc","gold_british_sovereign","gold_british_1-2sovereign","gold_british_2pounds","gold_british_5pounds","gold_chile_100peso","gold_columbia_5peso","gold_cr_suisse_bar_10oz","gold_holland_10guilders","gold_iran_1-4pahlavi","gold_iran_1-2pahlavi","gold_iran_1pahlavi","gold_iran_21-2pahlavi","gold_iran_5pahlavi","gold_italy_20lire","gold_italy_40lire","gold_peru_1libra","gold_peru_100soles","gold_russia_5roubles","gold_southafrica_1rand","gold_southafrica_2rand","gold_pandas_12oz","gold_pandas_1oz","gold_pandas_1-2oz","gold_pandas_1-4oz”,"gold_pandas_1-10oz”,"gold_philharmonic_1oz”,"gold_philharmonic_1-2oz”,"gold_philharmonic_1-4oz”,"gold_philharmonic_1-10oz”,"gold_pandas_1-20oz”,"gold_kangaroo_1oz”,"gold_kangaroo_1-2oz”,"gold_kangaroo_1-4oz”,"gold_kangaroo_1-10oz”,"gold_kangaroo_1-20oz”,"gold_mexican_20pesos”,"gold_mexican_10pesos”,"gold_mexican_5pesos”,"gold_mexican_21-2pesos”,"gold_mexican_50pesos”,"gold_mexican_2pesos”,"gold_20corona_aushun”,"gold_10-corona_aushun”,"gold_100corona_aushun”,"gold_austrian_1ducat”,"gold_austrian_4ducat”,"gold_french_10franc”,"gold_french_20franc”,"gold_french_40franc”,"gold_french_50franc”,"gold_sin_1oz”,"gold_sin_1-2oz”,"gold_sin_1-4oz”,"gold_sin_1-10oz”,"gold_sin_1-20oz”,"gold_angels_1oz”);
  23.  
  24.  
  25. foreach ($itemsArray as &$theItem) {
  26.     mysql_query("INSERT INTO items (item) VALUES('$theItem')");
  27.     echo “Item Added...”;
  28. }
  29.  
  30. echo "Done.";
  31.  
  32. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top