在另一个中使用while循环在tr中输出多个字符串 [英] Using while loop within another to output multiple strings in a tr

查看:199
本文介绍了在另一个中使用while循环在tr中输出多个字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做什么:


从数据库中获取网址并将其回显到多个圆柱表中,即每行4张图片(最近上传的表格)


我的问题是:


在我的MySQL数据库中,我有上传图片的网址。我不太确定如何让网址分成多行......我可以通过编写这个单行来完成

What i want to do:

Get urls from the database and echo them out into a multiple columned table i.e. 4 pictures per row (recently uploaded table)

MY problem is:

I have, in my MySQL database, the urls to the pictures that have been uploaded. I''m not really sure how i would get the urls to go into multiple rows... i can do it as a single row by writing this

展开 | 选择 | Wrap | 行号

推荐答案

嘿markus,
$ b $在这里遇到同样问题的伙伴。我已经试着找出一种方法来做几周了。当我得到的东西我会告诉你。如果你在我之前做了那么holla ..快乐的编码!
Hey markus,
u hv a partner here with the same problem. i''v geen tryin to figure out a way to do that for weeks now. when i get something i''ll tell u. if u do before me then holla.. Happy coding!


这是令人难以置信的烦恼?_?我讨厌我找不到解决方案......我打赌解决方案也很简单!


:(
This is incredibly annoying ?_? i hate that i can''t find a solution... and i bet that solution is really easy too!

:(


Heya ,Markus。


所以,我们有:
  • 每个网址都包含在''< td>''标签内。
  • 第一个每行中的网址前面都有一个< tr>。
  • 每行中的最后一个网址后面还有一个< / tr>。
Heya, Markus.

So, we have:
  • Every URL gets enclosed within ''<td>'' tags.
  • The first URL in each row also has a ''<tr>'' in front of it.
  • The last URL in each row also has a ''</tr>'' after it.
展开 | 选择 | 换行 | 行号


这篇关于在另一个中使用while循环在tr中输出多个字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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