When you query a database, the result you receive is a recordset. The form in which your result can be presented is affected by the capabilities of the language you use. This can present a challenge for certain languages. This article presents one way to meet that challenge if you program for the web.
The function takes the row number as argument. It replaces all the cell values of the row with the values of the array. If you want to edit only the content of one table cell, you do not need the “for” loop. You can now open the file in a browser and test the code.
Delete a Row
The following statement would delete the row whose index is given, from a table. The index and the position of the deleted row are taken up by the row below it.
The function takes the row number 3 as argument. It deletes the row. The row that had the index, namely 4, is now the row with the index 3. You can try the code.