質問編集履歴

1

php記述の抜けていた部分を追加しました。

2016/05/20 06:24

投稿

YutaEmoto
YutaEmoto

スコア14

test CHANGED
File without changes
test CHANGED
@@ -61,6 +61,22 @@
61
61
  $res =mysql_query( $sql);
62
62
 
63
63
  }
64
+
65
+ }
66
+
67
+
68
+
69
+ //ログインしている時にユーザー情報をDBから取得するプログラム
70
+
71
+ if( $_SESSION["user_no"] !=""){
72
+
73
+ $sql = " select * from customer";
74
+
75
+ $sql . =" where user_no = '".$_SESSION["user_no"]."'";
76
+
77
+ $res = mysql_query( $sql);
78
+
79
+ $info = mysql_fetch_array( $res );
64
80
 
65
81
  }
66
82