0

我已经创建了表格,并且有一行带有标题版本应用程序编号,对于该列,我提供了一些链接以下载该版本应用程序。但是,如果有人在服务器上上传了应用程序的新版本,则在 HTML 页面中,该链接必须位于第一行,而旧版本应位于第二行。

如何实施?我们是否需要在 HTML 中实现任何东西,或者他们是否需要更改服务器端的东西。我没有对表中的行数进行任何限制。

我的代码如下:

<table border = "2" align= "center" cellpadding = "10">
<tr>
<th> Date </th>
  <th> Build No </th>
<th colspan="2">Production </th>
  <th colspan="2">Staging </th>
 </tr>
   <tr>
<td>date</td>
<td>1.5</td>
<td>Prod With Simulator</td>
<td>Prod WithOut Simulator</td>
<td>Stag With Simulator</td>
<td>Stag WithOut Simulator</td>
</tr>
<tr>
<td>date</td>
<td>1.5</td>
<td><a href= "http://some ur/">Download here</a></td>
<td><a href= "http://some ur/">Download here</a></td>
<td><a href= "http://some ur/">Download here</a></td>
<td><a href= "http://some ur/">Download here</a></td>
</tr>
</table>
4

2 回答 2

0

你应该使用数据库......如果有人上传新版本,它应该从你的数据库存储在数据库中,你应该迭代并动态显示表格

于 2012-05-29T11:34:02.230 回答
0

我们无法将html连接到数据库..在jsp中我们可以连接所以你在jsp中编写你的html并连接数据库......roseindia.com(见数据库连接)

于 2012-05-29T11:45:29.370 回答