Dette er hvad jeg får:
Forside - (topmenu)
Underside 5 - (undermenu)
tester undermenu - (undermenu)
Topmenu 2 - (topmenu)
Underside 2 - (undermenu)
Underside 3 - (undermenu)
tester undermenu 2 - (undermenu)
Topmenu 3 - (topmenu)
3333 - (undermenu)
Topmenu 4 - (topmenu)
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\Borgen44\40M1N\content.php on line 104
Topmenu 5
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\Borgen44\40M1N\content.php on line 104
Topmenu 6
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\Borgen44\40M1N\content.php on line 104
Dette er min MySQL Tabel:
--
-- Database: `borgen44`
--
-- --------------------------------------------------------
--
-- Table structure for table `submenu`
--
CREATE TABLE IF NOT EXISTS `submenu` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`parent` int(11) NOT NULL,
`havedir` varchar(3) COLLATE utf8_danish_ci NOT NULL DEFAULT 'no',
`dir` text COLLATE utf8_danish_ci NOT NULL,
`name` varchar(50) COLLATE utf8_danish_ci NOT NULL,
`content` text COLLATE utf8_danish_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_danish_ci AUTO_INCREMENT=26 ;
--
-- Dumping data for table `submenu`
--
INSERT INTO `submenu` (`id`, `parent`, `havedir`, `dir`, `name`, `content`) VALUES
(21, 11, 'no', '', '11111112222', '111111122222222'),
(2, 2, 'no', '', 'Underside 2', 'indhold'),
(3, 2, 'no', '', 'Underside 3', 'indhold'),
(5, 1, 'no', '', 'Underside 5', 'indhold'),
(19, 7, 'no', '', 'ddddddddddddd', 'dddddddd'),
(10, 1, 'no', '', 'tester undermenu', 'indhold'),
(11, 2, 'no', '', 'tester undermenu 2', 'indhold'),
(12, 3, 'no', '', '3333', '3333333'),
(20, 7, 'no', '', 'ddddddd', 'dddddddd'),
(14, 0, 'yes', 'ttt.php', 'ttt', 'ttt'),
(18, 7, 'no', '', 'dddddd', 'ddddddd'),
(22, 15, 'no', '', 'SSSSSSSS', 'SSSSSSSSSS'),
(23, 15, 'no', '', 'SSSSSSSS', 'SSSSSSSS');
Indlæg senest redigeret d. 06.03.2010 23:31 af Bruger #10114