[php5_debug] 따옴표 누락, 변수 초기화 누락(특히 log와 alllog) 수정

This commit is contained in:
2018-01-17 22:35:02 +09:00
parent 4b9c72c354
commit d99707c3d7
5 changed files with 161 additions and 20 deletions
+5
View File
@@ -17,8 +17,12 @@ $me = MYDB_fetch_array($result);
$query = "select nation,color,name,power,gennum from nation where level>0 order by power desc";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$nationcount = MYDB_num_rows($result);
$nationnum = array();
$nationStr = "";
$powerStr = "";
$genStr = "";
$cityStr = "";
for($i=0; $i < $nationcount; $i++) {
$nation = MYDB_fetch_array($result);
@@ -26,6 +30,7 @@ for($i=0; $i < $nationcount; $i++) {
$cityresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$citycount = MYDB_num_rows($cityresult);
$nationnum[count($nationnum)] = $nation['nation'];
$nationname[$nation['nation']] = $nation['name'];
$nationcolor[$nation['nation']] = $nation['color'];