general table의 no_member를 의미에 더 맞도록 owner로 변경.

general table의 user_id, password column 삭제. 코드도 이를 참조하지 않고 owner를 이용하도록 변경
This commit is contained in:
2018-02-04 04:40:35 +09:00
parent e42643d439
commit 5ed33b1cda
89 changed files with 421 additions and 391 deletions
+4 -5
View File
@@ -3,9 +3,9 @@ include "lib.php";
include "func.php";
$connect = dbConn("sammo");
$userID = getUserID();
//회원 테이블에서 정보확인
$query = "select no,name,picture,grade from MEMBER where id='$id' and pw='$pwTemp'";
$query = "select no,name,picture,grade from MEMBER where no='$userID'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$member = MYDB_fetch_array($result);
@@ -94,8 +94,7 @@ if($admin['img'] >= 3) {
<td align=left colspan=2>
<select name=face size=1 style=color:white;background-color:black; value=1001 disabled>
<?php
//$query = "select npcid,name,leader,power,intel from general where npc=2 and level<5";
$query = "select npcid,name,leader,power,intel from general where npc=2";
$query = "select no,name,leader,power,intel from general where npc=2";
$result = MYDB_query($query,$connect);
$count = MYDB_num_rows($result);
@@ -103,7 +102,7 @@ for($i=0; $i < $count; $i++) {
$npc = MYDB_fetch_array($result);
$call = "{$npc['leader']} / {$npc['power']} / {$npc['intel']}";
echo "
<option value={$npc['npcid']}>{$npc['name']} 【{$call}】</option>";
<option value={$npc['no']}>{$npc['name']} 【{$call}】</option>";
}
?>