Page 342 - MDP2022-2
P. 342
</table>
</div>
</section>
.
.
.
</body>
</html>
<?php
include_once("connection.php");
$name = $_POST["name"];
$sql = "delete from material where food_name = '$name'";
$result = mysqli_query($connect, $sql);
echo("<script>location.href='fresness.php';</script>");
?>
[ 추천 메뉴 페이지 ]
<!DOCTYPE html>
<html>
<head>
.
.
.
</head>
<body>
.
.
.
<section data-bs-version="5.1" class="image1 cid-tgIoU7GhOS" id="image1-b">
<div class="container">
<?php
include_once("connection.php");
$sql = "SELECT * FROM bookmark";
$result = mysqli_query($connect, $sql);
if ($result === false) {
echo '저장하는 과정에서 문제가 생겼습니다. 관리자에게 문의해주세요';
error_log(mysqli_error($conn));
} else if (isset($result) && $result->num_rows > 0) {
while ($row = mysqli_fetch_array($result)) {
if ($row['bookmark'] == 1) {
$star = "★";
$state = "on";
}