我的目的是使用PHP脚本查询MySQL数据库,然后将信息发送给JavaScript。 p>
我知道如何将信息编码为JSON并将请求发送到服务器脚本。 p>
PHP脚本如何知道它已被查询它应该回答 ? p> div>
My intention is to query an MySQL database using a PHP script and then send the information to JavaScript.
I know how to encode the info into the JSON and send the request to the server script.
How does the PHP script know it has been queried it should answer?
我的目的是使用PHP脚本查询MySQL数据库,然后将信息发送给JavaScript。 p>
我知道如何将信息编码为JSON并将请求发送到服务器脚本。 p>
PHP脚本如何知道它已被查询它应该回答 ? p> div>