Reproducing that exact table in an email won't be super easy. Email programs tend to not play by the rules of the modern web. They are still stuck in the 90's. You must use inline styles to get them to cooperate. the code gets messy and complicated to maintain this way, but it's the only way to make it work. What you need to do is build a template of what you want it to look like, but in a manner that you can inject the php info in to the cells you want (sounds like maybe you already have that part handled). Then you take the template and paste the code in to the textarea on this page http://zurb.com/ink/inliner.php and it will inline all the css for you. Here is a video tutorial that you will find very helpful https://www.youtube.com/watch?v=gBiocrJuWOA