SELECT mgr_id
,mgr_name
,branch
,FROM new_manager
。
我想要在三列之上组合它有27个字段。
我希望将这27个字段组合成单个数组变量...
答案 0 :(得分:1)
<?php
$result = mysql_query('SELECT mgr_id, mgr_name, branch FROM new_manager WHERE 1');
$data = array();
while($result_row = mysql_fetch_array($result))
{
$data[]['mgr_id'] = $result_row['mgr_id'];
$data[]['mgr_name'] = $result_row['mgr_name'];
$data[]['branch'] = $result_row['branch'];
}
print_r($data);
?>