1

I'm having problems with my work - I want to automatically insert a table when user registers. I've already finished the registration part but how can I show another user the users registered with table tag?

1
  • Use jQuery Ajax to append new <tr> row into table tag Commented Jan 19, 2017 at 5:57

1 Answer 1

2

There are two ways to achieve this:

  • If you are using form submit and redirection than put the table in a foreach() loop with the data array coming from database table. Then when ever user comes on this page it takes all the newly added values and render the table.
  • Use jQuery Ajax to save the data and append new <tr> row into table body.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.