从数据库大家好我正在打印阵列以以下格式打印阵列不工作
Array ([0] => 14
[task_id] => 14
[1] => 123
[user_id] => 123
[2] => 456
[employee_id] => 456
[3] => 2
[service_id] => 2
[4] => 2:00 AM
[starttime] => 2:00 AM
[5] => 4:00 AM
[endtime] => 4:00 AM
[6] => se a
[servicename] => se a
[7] => ddsdsd
[servicedescription] => ddsdsd
[8] => dsd
[employeename] => dsd
[9] => pictures/noimage.gif
[employeepicture] => pictures/noimage.gif
[10] => pictures/noimage.gif
[pic_path] => pictures/noimage.gif)
这是
结果$rd = $this->executeQuery();
$recordsArray = array();
while (($row = mysqli_fetch_array($rd))){
$recordsArray[] = $row;
问题是我怎么能在单个记录从它这样
echo $row[$task_id]; // not working
感谢
我建议阅读阵列文档:http://php.net/manual/en /language.types.array.php – 2011-06-01 19:45:12
更新了代码 – user667340 2011-06-01 20:02:23