php code to display dynamically generated tides tables