단순 국가 정보를 받아올 때 query하지 않고 저장된 값을 쓰도록 변경
This commit is contained in:
+1
-6
@@ -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'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user