I found this code in google
CREATE TABLE
`categories` ( `id` int(11) NOT NULL auto_increment,
`name` varchar(100) NOT NULL,
`parent` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
-- -- Dumping data for table `categories` --
INSERT INTO `categories`
(`id`, `name`, `parent`) VALUES
(1, 'Web development', 0),
(2, 'Application development', 0),
(3, 'Linux', 0), (4, 'Misc', 0),
(5, 'Php', 1), (6, 'Mysql', 1),
(7, 'Javascript', 1),
(8, 'CSS', 1),
(9, 'C plus plus', 2),
(10, 'wxWidgets', 2),
(11, 'Tutorials', 3),
(12, 'My thoughts', 4);
I need to know
how can I used $_POST['submit']
to insert like these random numbers in my database
parent column seem have strange numbers