在PHP中,显然可以执行以下操作(使用mySQL PDO连接时)
$scope.projects = [{
"id": "1",
"name": "Project 1",
"time": "1pm - 2.30 pm",
"comment": "some comment on project",
"estimation": "1.5 hr",
"task": "Working on project task"
}, {
"id": "2",
"name": "Project 2",
"time": "1pm - 2.30 pm",
"comment": "some comment on project",
"estimation": "5 hr",
"task": "Working on project task"
}, {
"id": "3",
"name": "Project 3",
"time": "1pm - 2.30 pm",
"comment": "some comment on project",
"estimation": "6 hr",
"task": "Working on prject task"
}];
但是,PHP手册说while ($row = $result->fetch())
{
}
不存在:
发生了什么事?我怎样才能更好地学习导航PHP手册?