コード例 #1
0
ファイル: actionDoctor.php プロジェクト: andrewchopko/hack1
} else {
    $tuesday = false;
}
if (isset($_POST["wednesday"])) {
    $wednesday = true;
} else {
    $wednesday = false;
}
if (isset($_POST["thursday"])) {
    $thursday = true;
} else {
    $thursday = false;
}
if (isset($_POST["friday"])) {
    $friday = true;
} else {
    $friday = false;
}
$duration = $_POST["duration"];
$start = $_POST["start"];
$finish = $_POST["finish"];
$cabinet = $_POST["cabinet"];
$hospital_id = $_POST["hospital_id"];
$newDoctor = new Doctor($email, $password, $name, $type, $monday, $tuesday, $wednesday, $thursday, $friday, $start, $finish, $duration, $cabinet, $hospital_id);
$newDoctor->addToDatabase();
$strSQL = "select id from doctors where email = '" . $email . "'";
$rs = mysql_query($strSQL);
$row = mysql_fetch_array($rs);
//echo $row["id"] . "<br/>";
header("Location: http://localhost/project/privateCabinet.php?id_doctor=" . $row["id"]);
echo "<h1>OK<h1>";