I have a php page that goes something like this:
$sql = "SELECT * FROM '".$_GET['tbl']."' WHERE `id` = '".$_GET['id']."' LIMIT 1";
$query = mysql_query($sql) or die(mysql_error());
$row = mysql_fetch_array($query);
My question is how do I display the record and its corresponding column heading in a table without having to create the table and have a format for each table in the database?
Thanks a lot. I really appreciate your help in advance.