AJAX - 从数据库获取数据并显示 - 在博客网站上工作吗? [英] Does AJAX - get data from database and display - work on blog sites?

查看:39
本文介绍了AJAX - 从数据库获取数据并显示 - 在博客网站上工作吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

php版本 - 4.4.4

mysql版本 - 4.1.22


您好,我的问题根植于博客如何处理ajax来自数据库的请求以图像元素的形式返回html。因此,博客包含对服务器上的js文件的引用,该文件与同一文件夹中的php脚本交互,然后返回图像元素(例如

php version - 4.4.4
mysql version - 4.1.22


Hi, my problem is rooted in how blogs handle ajax requests from a database returning html in the form of an image element. So the blog contains reference to a js file on the server which interacts with a php script in the same folder that then returns an image element (eg.

展开 | 选择 | 换行 | 行号

推荐答案

您可以发布您的代码或链接吗?
Can you post your code or a link?


这里是javacript代码的样子......

(我是新手)
Here''s what the javacript code looks like...
(I''m a newbie at this)
Exp和 | 选择 | Wrap | 行号


上面的代码是许多自动生成的脚本之一(每个脚本都将diff值传递给weblinks.php。相应的html脚本的示例如下....
The code above is one of many automatically generated scripts (each passes diff values to weblinks.php. An example of the corresponding html script follows....
展开 | 选择 | Wrap | 行号


这篇关于AJAX - 从数据库获取数据并显示 - 在博客网站上工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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