query 간소화

This commit is contained in:
2018-06-23 05:37:34 +09:00
parent 6502843d6c
commit 66b6c4d04f
+1 -1
View File
@@ -908,7 +908,7 @@ function NPCStaffWork($general, $nation, $dipState){
$commandList = [];
foreach($db->query('SELECT * FROM general WHERE nation = %i', $general['nation']) as $nationGeneral) {
foreach($db->query('SELECT `no`, nation, city, npc, `gold`, `rice`, leader, `power`, intel, killturn, crew, train, atmos, `level` FROM general WHERE nation = %i', $general['nation']) as $nationGeneral) {
$cityID = $nationGeneral['city'];
$generalID = $nationGeneral['no'];