質問するログイン新規登録

質問編集履歴

1

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

2016/05/20 06:24

投稿

YutaEmoto
YutaEmoto

スコア14

title CHANGED
File without changes
body CHANGED
@@ -31,6 +31,14 @@
31
31
  $res =mysql_query( $sql);
32
32
  }
33
33
  }
34
+
35
+ //ログインしている時にユーザー情報をDBから取得するプログラム
36
+ if( $_SESSION["user_no"] !=""){
37
+ $sql = " select * from customer";
38
+ $sql . =" where user_no = '".$_SESSION["user_no"]."'";
39
+ $res = mysql_query( $sql);
40
+ $info = mysql_fetch_array( $res );
41
+ }
34
42
  ```
35
43
 
36
44
  下記は会員登録フォームのHTMLです。