简体   繁体   English

在表格顶部添加新行

[英]Add a new row at the top of the table

I have created the table and I have one row with heading version app num and for that column I have given the some link to down load that version app. 我已经创建了表格,并在标题行中列出了版本号为num的应用程序,对于该列,我给出了一些链接来下载该版本的应用程序。 But if anyone has uploaded a new version of the app on the server, in the HTML page that link has to come in the first row and the older version should be in the second row. 但是,如果有人在服务器上上传了该应用程序的新版本,则必须在HTML页面的第一行中包含该链接,而较旧的版本应在第二行中。

How to implement this? 如何实现呢? Do we need to implement anything in HTML, or do they need to change something server side. 我们是否需要在HTML中实现任何内容,还是需要在服务器端进行更改? I have not been given any limit for the number of rows in the table. 表格中的行数没有任何限制。

My code is below: 我的代码如下:

<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(请参阅数据库连接)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM