阅读背景:

代码点燃php和jquery——如何从多个表获取数据并通过ajax返回数据

来源:互联网 

I am currently using jquery to get JSON data via ajax from a codeigniter backend / mySQL database, which works fine. The problem I'm having is that, along with the data that gets returned to the jquery function, I also need to run a PHP loop for some data in another table. Currently what I'm doing is waiting for an ajax success from the first function, then making another ajax call to the second function - but I know there is a way to do it with just one function, I'm just not sure how. Here are the two database queries:I am currently using jquery to get JSON data vi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: