Commit d9f07cde authored by 君塚 悠's avatar 君塚 悠

プログラム修正(schedule_record2.php:「;」「>?」の打ち忘れを修正)

parent dfde8e78
<?php <?php
//データベースへ接続
$db = sqliyr_open("schedule.sqlite", 0666, $err); $db = sqliyr_open("schedule.sqlite", 0666, $err);
$s_date = $_POST['s_date_year']."/".$_POST['s_date_month']."/".$_POST['s_date_day']; $s_date = $_POST['s_date_year']."/".$_POST['s_date_month']."/".$_POST['s_date_day'];
$s_time = $_POST['s_time_hour'].":".$_POST['s_minute']; $s_time = $_POST['s_time_hour'].":".$_POST['s_minute'];
//SQL命令
splite_query($db, "INSERT INTO schedule(title, s_date, s_time, memo) VALUES('".sqite_escape_string($s_date)."','".sqlite_escape_string($s_time)."','".sqlite_escape_string($_POST['memo'])."')"); splite_query($db, "INSERT INTO schedule(title, s_date, s_time, memo) VALUES('".sqite_escape_string($s_date)."','".sqlite_escape_string($s_time)."','".sqlite_escape_string($_POST['memo'])."')");
//データベースから切断
sqlite_close($db);
header("location: schedule_record.php");
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment