Automatically update php loop with data pulled from database
- by John Svensson
SQL STRUCTURE
CREATE TABLE IF NOT EXISTS `map` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`x` int(11) NOT NULL,
`y` int(11) NOT NULL,
`type` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
http://localhost/map.php?x=0&y=0
When I update the x and y via POST or GET, I would like to…