단순 국가 정보를 받아올 때 query하지 않고 저장된 값을 쓰도록 변경

This commit is contained in:
2018-02-24 17:41:04 +09:00
parent b28603d16f
commit 2cd7d525a4
23 changed files with 57 additions and 153 deletions
+1 -5
View File
@@ -66,12 +66,8 @@ $sel[$type] = "selected";
<td align=center id=bg1>비 고</td>
</tr>
<?php
$query = "select nation,name,color from nation";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$nationcount = MYDB_num_rows($result);
for($i=0; $i < $nationcount; $i++) {
$nation = MYDB_fetch_array($result);
foreach(getAllNationStaticInfo() as $nation){
$nationName[$nation['nation']] = $nation['name'];
$nationColor[$nation['nation']] = $nation['color'];
}