From 157f331a24d4458bbd8f02edc2f6975d78a9ad54 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Thu, 18 May 2017 01:45:16 -1000 Subject: [PATCH] prepping treasure location links, renamed sql table --- db/gw-treasure-treasuredata.sql | 27 --------------------------- db/gw-treasure-treasurelocation.sql | 27 +++++++++++++++++++++++++++ gw-pull.php | 1 + 3 files changed, 28 insertions(+), 27 deletions(-) delete mode 100644 db/gw-treasure-treasuredata.sql create mode 100644 db/gw-treasure-treasurelocation.sql diff --git a/db/gw-treasure-treasuredata.sql b/db/gw-treasure-treasuredata.sql deleted file mode 100644 index 42b14c1..0000000 --- a/db/gw-treasure-treasuredata.sql +++ /dev/null @@ -1,27 +0,0 @@ -/*!40101 SET NAMES utf8 */; - -/*!40101 SET SQL_MODE=''*/; - -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -/*Table structure for table `treasuredata` */ - -DROP TABLE IF EXISTS `treasuredata`; - -CREATE TABLE `treasuredata` ( - `treasureid` int(11) NOT NULL AUTO_INCREMENT, - `location` varchar(27) DEFAULT NULL, - `wikilink` varchar(59) DEFAULT NULL, - PRIMARY KEY (`treasureid`) -) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1; - -/*Data for the table `treasuredata` */ - -insert into `treasuredata`(`treasureid`,`location`,`wikilink`) values (1,'Issnur Isles','https://wiki.guildwars.com/wiki/Issnur_Isles'),(2,'Mehtani Keys','https://wiki.guildwars.com/wiki/Mehtani_Keys'),(3,'Arkjok Ward','https://wiki.guildwars.com/wiki/Arkjok_Ward'),(4,'Jahai Bluffs','https://wiki.guildwars.com/wiki/Jahai_Bluffs'),(5,'Bahdok Caverns','https://wiki.guildwars.com/wiki/Bahdok_Caverns'),(6,'The Mirror of Lyss','https://wiki.guildwars.com/wiki/The_Mirror_of_Lyss'),(7,'The Hidden City of Ahdashim','https://wiki.guildwars.com/wiki/The_Hidden_City_of_Ahdashim'),(8,'Forum Highlands','https://wiki.guildwars.com/wiki/Forum_Highlands'),(9,'The Sulfurous Wastes','https://wiki.guildwars.com/wiki/The_Sulfurous_Wastes'),(10,'The Ruptured Heart','https://wiki.guildwars.com/wiki/The_Ruptured_Heart'),(11,'Nightfallen Jahai','https://wiki.guildwars.com/wiki/Nightfallen_Jahai'),(12,'Domain of Pain','https://wiki.guildwars.com/wiki/Domain_of_Pain'); - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; diff --git a/db/gw-treasure-treasurelocation.sql b/db/gw-treasure-treasurelocation.sql new file mode 100644 index 0000000..42b14c1 --- /dev/null +++ b/db/gw-treasure-treasurelocation.sql @@ -0,0 +1,27 @@ +/*!40101 SET NAMES utf8 */; + +/*!40101 SET SQL_MODE=''*/; + +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +/*Table structure for table `treasuredata` */ + +DROP TABLE IF EXISTS `treasuredata`; + +CREATE TABLE `treasuredata` ( + `treasureid` int(11) NOT NULL AUTO_INCREMENT, + `location` varchar(27) DEFAULT NULL, + `wikilink` varchar(59) DEFAULT NULL, + PRIMARY KEY (`treasureid`) +) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1; + +/*Data for the table `treasuredata` */ + +insert into `treasuredata`(`treasureid`,`location`,`wikilink`) values (1,'Issnur Isles','https://wiki.guildwars.com/wiki/Issnur_Isles'),(2,'Mehtani Keys','https://wiki.guildwars.com/wiki/Mehtani_Keys'),(3,'Arkjok Ward','https://wiki.guildwars.com/wiki/Arkjok_Ward'),(4,'Jahai Bluffs','https://wiki.guildwars.com/wiki/Jahai_Bluffs'),(5,'Bahdok Caverns','https://wiki.guildwars.com/wiki/Bahdok_Caverns'),(6,'The Mirror of Lyss','https://wiki.guildwars.com/wiki/The_Mirror_of_Lyss'),(7,'The Hidden City of Ahdashim','https://wiki.guildwars.com/wiki/The_Hidden_City_of_Ahdashim'),(8,'Forum Highlands','https://wiki.guildwars.com/wiki/Forum_Highlands'),(9,'The Sulfurous Wastes','https://wiki.guildwars.com/wiki/The_Sulfurous_Wastes'),(10,'The Ruptured Heart','https://wiki.guildwars.com/wiki/The_Ruptured_Heart'),(11,'Nightfallen Jahai','https://wiki.guildwars.com/wiki/Nightfallen_Jahai'),(12,'Domain of Pain','https://wiki.guildwars.com/wiki/Domain_of_Pain'); + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; diff --git a/gw-pull.php b/gw-pull.php index dacc39f..e5f5a79 100644 --- a/gw-pull.php +++ b/gw-pull.php @@ -21,6 +21,7 @@ if (mysqli_num_rows($result) > 0) { echo 'a ' . $row['material'] . '!
'; } } + echo ' at (insert SQL code here)
'; } } else { echo 'no data to display for that character';