First I would read this, but the code is actually really simple.

On your front end, you'd have your table

&lt;table id="myTable"&gt;&lt;/table&gt;


Then you'd make your AJAX post within JQuery

$.ajax({
  url: "yourphpfile",
  data: &lt;data you want your php file to read&gt;
  success: function(data){
    $('#myTable').html(data);
  }
});


Your method in php would take in your posted data, it would create an HTML string of a table element, and then you'd set your table's innerHTML on the front end with .html() built into JQuery -- that way you never have to worry about showing/hiding, everytime you post, your given the table itself, so you just display exactly that, you can handle all the fancy stuff server side.

Populate a JSON into a table in real time with JQUERY
When my web browser connects to a website, the source port my end is a number like 27825, what range of ports can it use and how regularly does it change?
