我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在HTML中显示SQL查询?

I have a simple query showing 7 numbers, all from the same column.

Example:

93000
12365
3500
3125
2963
31
9

How do I display those results on an HTML-page? I just want all the numbers to be displayed like a list, under each other.

You can put the result of that column in an array by using explode function with a space seperator, and in html you can append the result to an unordered list using JQuery's for in loop or forEach loop.

近期文章

  • php中的引用数组
  • 使用php显示mp3的字幕
  • MySQL中的十进制INT
  • too long
  • 不能用引号连接字符串
  • PHP显示链接的点击次数
  • 从Mysql内部连接的表中选择数据?
  • 更改PHP网站的标题
  • IMAP-从退回的邮件中解析原始标题
  • 通过php将外部图像上传到webhost
  • JavaScript不在php输出ajax中运行
  • Foreach功能以高效的方式[关闭]
  • (include_path ='。:/ usr / local / php5_3 / lib / php')/home/content/06/11735806/html/systems/CA/pdf.php [关闭]
  • 在PHP中传递URL参数的不同方法?
  • 这里有什么样的加密?
  • 我如何需要一个函数的会话
  • 显示类似文章的链接
  • PHP的性能最差情况if else声明[关闭]
  • 警告:mysql_fetch_array()期望参数1是资源,布尔[重复]
  • 当我运行此代码时,它不会显示查询的任何结果

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华