game table을 대상으로 하는 update, select에서 no=1 과 관련된 부분을 limit 1 로 변경

This commit is contained in:
Hide_D committed 2018-03-31 23:21:46 +09:00
1 parent f78bdc6c6c
commit 3875a345c9
62 files changed
+275 -200

No files matched your search

+2 -2
View File
@@ -9,7 +9,7 @@ include "func.php";
CheckLogin();
$connect = dbConn();
$query = "select startyear,year,month from game where no='1'";
$query = "select startyear,year,month from game limit 1";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$admin = MYDB_fetch_array($result);
@@ -156,7 +156,7 @@ if($btn == "추방") {
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
}
$query = "select year,month from game where no='1'";
$query = "select year,month from game limit 1";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$admin = MYDB_fetch_array($result);
addHistory($general, "<C>●</>{$admin['year']}년 {$admin['month']}월:<D>{$nation['name']}</>에서 추방됨");