Flexible PHP table rendering