-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathformResult.php
More file actions
47 lines (37 loc) · 1.21 KB
/
formResult.php
File metadata and controls
47 lines (37 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
require_once('config.php');
require_once('./helpers/db_helper.php');
require_once('./helpers/extra_helper.php');
session_start();
if (!empty($_SESSION['member'])) {
$member_id = $_SESSION['member']['id'];
//$cnt = count($member_id);
//echo $cnt;
}
$dbh = get_db_connect();
$res = select_id($dbh, $member_id);
$resutaurants = array();
//全会員データを取得する
//echo $member_id;
$resutaurants = select_resutaurants($dbh, $member_id);
?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="./css/style.css">
<title>PHP基本トレーニング</title>
</head>
<?php foreach($resutaurants as $resutaurant): ?>
<li>
<?php
echo "<tr>";
echo "<td>".html_escape($resutaurant['Resturant_name'])."</td>";
echo "<td>".html_escape($resutaurant['Resturant_erea'])."</td>" ;
echo "<td>".html_escape($resutaurant['Resturant_genre'])."</td>" ;
echo "<td>".html_escape($resutaurant['Resturant_message'])."</td>";
?></li>
<?php endforeach; ?>
<p><a href="./index.php">ホームに戻る</a></p>
<p><a href="./index.php">投稿する</a></p>
<p><a href="./index.php">ホームに戻る</a></p>