質問編集履歴

1

編集

2019/04/23 14:52

投稿

ariiiiiga
ariiiiiga

スコア66

test CHANGED
File without changes
test CHANGED
@@ -10,9 +10,7 @@
10
10
 
11
11
  ```ここに言語名を入力
12
12
 
13
- $pdo = new PDO('mysql:host=localhost;dbname=reserve;charset=utf8','root','',
13
+ $pdo = new PDO('mysql:host=localhost;dbname=reserve;charset=utf8','root','',);
14
-
15
- array(PDO::ATTR_EMULATE_PREPARES => false));
16
14
 
17
15
  $pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES,false);
18
16
 
@@ -20,7 +18,7 @@
20
18
 
21
19
 
22
20
 
23
- if(!isset($_SESSION['user'])) {
21
+ if(!isset($_SESSION['shop'])) {
24
22
 
25
23
  header("Location: shop_index.php");
26
24