Hello I would like to recieve help from you Im quite sure this is a easy task but i got brain afk
This is table schema
All goes about this that i need a foreach loop that will sum me `broni` WHERE `k`= numer from 00 to 99 or checks existing entries.
Is this possible.?
This is table schema
PHP:
CREATE TABLE IF NOT EXISTS `empire` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`X` int(3) DEFAULT NULL,
`Y` int(3) DEFAULT NULL,
`wojo` int(11) DEFAULT NULL,
`wojd` int(11) NOT NULL,
`k` int(11) NOT NULL,
`broni` mediumtext,
`active` tinyint(1) DEFAULT '0',
`typ` varchar(15) NOT NULL,
`owner` varchar(30) NOT NULL,
UNIQUE KEY `id` (`id`),
UNIQUE KEY `id_2` (`id`),
UNIQUE KEY `X` (`X`),
UNIQUE KEY `X_2` (`X`),
UNIQUE KEY `Y` (`Y`),
KEY `id_3` (`id`),
KEY `id_4` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=44 ;
All goes about this that i need a foreach loop that will sum me `broni` WHERE `k`= numer from 00 to 99 or checks existing entries.
Is this possible.?