mysql 有如下数据:---- ---------
id classname
---- ---------
1 ASP
2 JSP
3 PHP
. .
. .
n n哦,显示格式如问题所示。
id classname
---- ---------
1 ASP
2 JSP
3 PHP
. .
. .
n n哦,显示格式如问题所示。
解决方案 »
- 这个PHP遍历数据库的代码哪里出错了?求高手看下
- navicat 可以连上数据库,但php程序连不上
- 请问有人对cakephp了解吗?有问题请教!
- 利用php作简单的搜索引擎:怎么在被搜索网站的log中出现这样的字符 Baiduspider+(+http://www.baidu.com/search/spider.htm)
- php怎样显示pdf图片?
- 这个如何实现?
- 在linux下如何实现用php改一个文件的权限?
- 各们走过,路过,不要错过。南来的北往的进来瞧瞧了
- 一个简单的求值问题
- 我打开 网页 index.html, 想同时 偷偷加载 a.htm
- 这项功能如何实现?
- PHP中COOKIE的问题
for i=1 to 3
response.write "<tr>"
for j=1 to 3
response.write "<td>"&rs("name")&"</td>"
next
response.write "</tr>"
next
wend
$tmp = array();
$rowcount = 3;
foreach($data as $key=>$value){
$tmp[$key%$rowcount][] = $value;
}
生成的数组就是含有$rowcount列的n行数据。$data是你从数据库中取到的数据。
echo "<table>";
$col = N;
$row