使用ajax显示来自mysql html的数据 [英] Using ajax to display data from mysql html

查看:96
本文介绍了使用ajax显示来自mysql html的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在数据库pascal中有一个表产品,我正在使用Mysql(Xampp)来存储数据库。我想从产品中选择*。我想要一个可以查询sql语句并在html页面上显示的ajax脚本。我不想要任何.php文件。有人可以帮帮我..谢谢。

I'm having a table product in the database pascal, I'm using Mysql (Xampp) to store the database. I want to "Select * from product". I want to have ajax script that can query the sql statement and display it on a html page. I dont want to have any .php files. Can someone help me.. Thank you.

推荐答案

检查一下,

http://www.w3schools.com/php/php_ajax_database.asp [ ^ ]



一切顺利:)如果你被困住,请回信
Check this,
http://www.w3schools.com/php/php_ajax_database.asp[^]

All the best:)Write back if you are stuck up


这篇关于使用ajax显示来自mysql html的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆