- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
mysql_query("INSERT INTO `classes` (`name`) VALUES('".$_POST["class_name"]."')");
$Mresult=mysql_query("SELECT MAX(`id`) FROM `classes`");
$row=mysql_fetch_row($Mresult);
$class_num=$row[0];
$date1=$_POST["class_start"];
$date2=$_POST["class_end"];
mysql_query("CREATE TABLE `class_".$class_num."_lessons` (`id` INT, `data` TEXT)");
mysql_query("CREATE TABLE `class_".$class_num."_video` (`id` INT, `data` TEXT)");
mysql_query("CREATE TABLE `class_".$class_num."_ege` (`id` INT, `data` TEXT)");
mysql_query("CREATE TABLE `class_".$class_num."_rasp` (`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, `data` TEXT)");