I'm trying to make a web interface for a c++ game a friend have done. Unfortuantly Im not a php/sql guru.
Its especially hard when I need to join tables. Im not good with those.
To show you what im looking for: (i want to get all the members of a guild)
Guilds > The Badasses
-------------------------------
Rank Player name
-------------------------------
Big Boss | Midvalley the Hornfreak
Loser | Kraven the Hunter
Saint Sinner
Kull the Conqueror
Zazi The Beast
Novice | Igos du Ikana
--------------------------------
The tables look like this:
CREATE TABLE `guilds` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`founder` int(11) NOT NULL,
PRIMARY KEY (`id`)
)
CREATE TABLE `guild_ranks` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`guild_id` int(10) unsigned NOT NULL,
`name` varchar(255) NOT NULL,
`access` int(11) NOT NULL
)
CREATE TABLE IF NOT EXISTS `players` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`account_id` int(10) unsigned NOT NULL,
`rank_id` int(10) unsigned NOT NULL
)
So lets say YOU wanted to get all guild members of guild ID 114, how would you do it?
Thanks alot!