How do I insert multiple rows of data from an HTML table into the database?

You can start with getting rid of all the variables for nothing. After that, make the form field names arrays. I hope you only have a few employees. This will not scale well to edit a lot of employees all at once.

It always matters.