我有一个查询:
SELECT info.pID, Name, Addr, Phone, GROUP_CONCAT(URL) as URL FROM info, images WHERE info.pID = images.pID AND place='$place';
即使没有找到结果,也会创建一行(如 num_rows 和 js .length 所述),任何想法为什么?这不是一件平常的事情。
JSON结果打印:
[{"0":null,"pID":null,"1":null,"Name":null,"2":null,"Addr":null,"3":null,"Phone":null,"4":null,"URL":null}]