📅  最后修改于: 2022-03-11 14:53:38.831000             🧑  作者: Mango
if (isset($_GET['idQuestions']) and isset($_GET['idAnswers'])) {
$requestSession = mysqli_query($mysqli, "SELECT COUNT(*) FROM `save_answers`");
$session = mysqli_fetch_row($requestSession);
$countSession = $session[0];
$id = $countSession + 1;
// $date = date(DATE_RFC822);
$idQuestion = $_GET['idQuestions'];
$idAnswer = $_GET['idAnswers'];
mysqli_query($mysqli, "
INSERT INTO `save_answers`(`id`, `idQuestions`, `idAnswers`)
VALUES ('$id','$date','$idUser','$idQuestion','$idAnswer')
");
}