Jump to content

how to add dynamic rows to a html table


phplearner2008

Recommended Posts

Dear members,

 

I am creating a system in php in which if a member expresses interest in other member, it should be displaced in Interests_received.php page in a html table (something like our inbox table displaying message, sender, date etc).

 

If a member clicks the Express Interest button, the Interests_received page should automatically create new rows in the table which would have already existing interests in previous rows. What I want to know is how do I find the last entered row of the html table so that I can append new row?

 

Any idea how email hosters are able to add new mails to our inbox along with our previous mails. Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/123913-how-to-add-dynamic-rows-to-a-html-table/
Share on other sites

Dear members,

 

I am creating a system in php in which if a member expresses interest in other member, it should be displaced in Interests_received.php page in a html table (something like our inbox table displaying message, sender, date etc).

 

If a member clicks the Express Interest button, the Interests_received page should automatically create new rows in the table which would have already existing interests in previous rows. What I want to know is how do I find the last entered row of the html table so that I can append new row?

 

Any idea how email hosters are able to add new mails to our inbox along with our previous mails. Thanks in advance.

 

For this kind of DOM manipulation, you'd be better off using JavaScript to create the new rows and append them to the table after you populate their data from the database.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.