Hej Stefan.
Nu er jeg rimelig ny i det her, og har lidt svært ved at finde ud af hvad du mener :-) Så måske du kan skære det ud i pap? Jeg har vedhæftet tabellen 'offers' samt 'stock' (offers = tilbud, og stock = produkter).
Offers
- CREATE TABLE `offers` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `approved` tinyint(1) NOT NULL,
- `archived` tinyint(1) NOT NULL,
- `paid` tinyint(4) NOT NULL,
- `name` varchar(255) NOT NULL,
- `adress` varchar(255) NOT NULL,
- `postalcode` varchar(255) NOT NULL,
- `city` varchar(255) NOT NULL,
- `att` varchar(255) NOT NULL,
- `mail` varchar(255) NOT NULL,
- `ean` varchar(255) NOT NULL,
- `text` text NOT NULL,
- `discount` int(3) NOT NULL,
- `product1` varchar(255) NOT NULL,
- `product2` varchar(255) NOT NULL,
- `product3` varchar(255) NOT NULL,
- `product4` varchar(255) NOT NULL,
- `product5` varchar(255) NOT NULL,
- `product6` varchar(255) NOT NULL,
- `product7` varchar(255) NOT NULL,
- `product8` varchar(255) NOT NULL,
- `product9` varchar(255) NOT NULL,
- `product10` varchar(255) NOT NULL,
- `product11` varchar(255) NOT NULL,
- `product12` varchar(255) NOT NULL,
- `product13` varchar(255) NOT NULL,
- `product14` varchar(255) NOT NULL,
- `product15` varchar(255) NOT NULL,
- `product16` varchar(255) NOT NULL,
- `product17` varchar(255) NOT NULL,
- `product18` varchar(255) NOT NULL,
- `product19` varchar(255) NOT NULL,
- `product20` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
Stock
- CREATE TABLE `stock` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(255) NOT NULL,
- `description` text NOT NULL,
- `category_id` int(11) NOT NULL,
- `price` varchar(255) NOT NULL,
- `in_stock` varchar(255) NOT NULL,
- `out_stock` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=24 ;