当用户单击链接时,我试图通过使用列SongID从数据库中获取特定数据,但我收到此错误:SQLSTATE[42S22]:Columnnotfound:1054Unknowncolumn'id'in'whereclause'(SQL:select*fromsongswhereid=5limit1)Controller类:getName();$songs=DB::table('songs')->get();returnview('songs.index',compact('songs','name'));}publicfunctionshow($id){$name=$this->getNam
当用户单击链接时,我试图通过使用列SongID从数据库中获取特定数据,但我收到此错误:SQLSTATE[42S22]:Columnnotfound:1054Unknowncolumn'id'in'whereclause'(SQL:select*fromsongswhereid=5limit1)Controller类:getName();$songs=DB::table('songs')->get();returnview('songs.index',compact('songs','name'));}publicfunctionshow($id){$name=$this->getNam
我有这样的回应:{"songs":{"2562862600":{"id":"2562862600""pos":1},"2562862620":{"id":"2562862620""pos":1},"2562862604":{"id":"2562862604""pos":1},"2573433638":{"id":"2573433638""pos":1}}}这是我的代码:Listparam=newArrayList();JSONObjectjson=jParser.makeHttpRequest(url,"GET",param);JSONObjectsongs=json.getJSONO
我有这样的回应:{"songs":{"2562862600":{"id":"2562862600""pos":1},"2562862620":{"id":"2562862620""pos":1},"2562862604":{"id":"2562862604""pos":1},"2573433638":{"id":"2573433638""pos":1}}}这是我的代码:Listparam=newArrayList();JSONObjectjson=jParser.makeHttpRequest(url,"GET",param);JSONObjectsongs=json.getJSONO