我想打印mysql查询响应在前端从php脚本。例如,从何时开始执行blow查询
mysql> UPDATE cl_time.outgoings SET amount=407481.24 WHERE outgoings.id=198;
Query OK, 0 rows affected (0.00 sec)
Rows matched: 1 Changed: 0 Warnings: 0它将在前端打印Query OK, 0 rows affected (0.00 sec) Rows matched: 1 Changed: 0 Warnings: 0。有没有mysql函数来获取这条消息?
发布于 2018-11-05 16:14:57
尝试从前端向后端发送ajax请求(Get)。
在后端,您将需要回显
echo mysql> UPDATE cl_time.outgoings SET amount=407481.24 WHERE outgoings.id=198;在前端
$.ajax({
type: `GET`,
url: `backend`,
success: function(response){
//place the data on the page
}
)};https://stackoverflow.com/questions/53150209
复制相似问题