在表格顶部添加新行

Add a new row at the top of the table

本文关键字:新行 添加 顶部 表格      更新时间:2023-09-26

我已经创建了表格,我有一行带有标题版本应用程序编号,对于该列,我提供了下载该版本应用程序的一些链接。但是,如果有人在服务器上上传了新版本的应用程序,则在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>

我们无法将 html 连接到数据库.. 在 JSP 中我们可以连接,所以你用 JSP 编写你的 HTML 并连接数据库...roseindia.com(请参阅数据库连接)

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