基本的に毎回同じ配列を上書きしているように見える次のコードがあるため、出力(json)は返された最後の行のみを提供しますか?
ありがとう
$structure = mysql_query("SELECT FIELDNAME, DISPLAYNAME from `_PREFS_MAINGRID_`");
$rowsField = array();
while($struct = mysql_fetch_assoc($structure)) {
$rowsField["columname"] = $struct;
}
$plode = implode("` as `", $rowsField["columname"]);
print json_encode($rowsField);