|
|
|
function load_value PHP มาแสดงโดยการใช่ select list ซ้อน php </option> |
|
|
|
|
|
|
|
ฐานข้อมูลCode (SQL)
CREATE TABLE `subject` (
`subject_id` int(10) unsigned zerofill NOT NULL auto_increment,
`subject` varchar(500) collate utf8_unicode_ci NOT NULL,
`course_description` text collate utf8_unicode_ci NOT NULL,
PRIMARY KEY (`subject_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=12 ;
--
-- dump ตาราง `subject`
--
INSERT INTO `subject` VALUES (0000000001, 'คณิตศาสตร์', 'เรียนให้จบ');
-- --------------------------------------------------------
--
-- โครงสร้างตาราง `chapter`
--
CREATE TABLE `chapter` (
`chapter_id` int(100) NOT NULL,
`chapter_text` varchar(500) collate utf8_unicode_ci NOT NULL,
`purpose` text collate utf8_unicode_ci NOT NULL,
`subject_id` int(10) unsigned zerofill NOT NULL,
PRIMARY KEY (`chapter_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- dump ตาราง `chapter`
--
|
|
|
|
|
Date :
2016-04-21 00:37:19 |
By :
ISameDong |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (SQL)
CREATE TABLE `subject` (
`subject_id` int(10) unsigned zerofill NOT NULL auto_increment,
`subject` varchar(500) collate utf8_unicode_ci NOT NULL,
`course_description` text collate utf8_unicode_ci NOT NULL,
PRIMARY KEY (`subject_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=12 ;
--
-- dump ตาราง `subject`
--
INSERT INTO `subject` VALUES (0000000001, 'คณิตศาสตร์', 'เรียนให้จบ');
-- --------------------------------------------------------
--
-- โครงสร้างตาราง `chapter`
--
CREATE TABLE `chapter` (
`chapter_id` int(100) NOT NULL,
`chapter_text` varchar(500) collate utf8_unicode_ci NOT NULL,
`purpose` text collate utf8_unicode_ci NOT NULL,
`subject_id` int(10) unsigned zerofill NOT NULL,
PRIMARY KEY (`chapter_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- dump ตาราง `chapter`
--
|
|
|
|
|
Date :
2016-04-21 00:37:38 |
By :
ISameDong |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 00
|