단순 국가 정보를 받아올 때 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 -6
View File
@@ -58,13 +58,8 @@ if(!isset($type) || $type == 0) {
</td></tr>
</table>
<?php
$query = "select nation,name,level from nation";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$count = MYDB_num_rows($result);
$nationname[0] = "-";
for($i=0; $i < $count; $i++) {
$nation = MYDB_fetch_array($result);
foreach(getAllNationStaticInfo() as $nation){
$nationname[$nation['nation']] = $nation['name'];
$nationlevel[$nation['nation']] = $nation['level'];
}