'.$title.'

'; // Get the column info first $table = $_GET['table']; $result = run_query("SHOW COLUMNS FROM $table"); // Output the column titles echo ''; echo ''; while ($row = $result->fetch_row()) { echo '"; } echo ''; $result->close(); // Get all the rows of data $result = run_query("SELECT * FROM $table"); // Fetch each row one at a time while ($row = $result->fetch_row()) { echo ''; // Loops for each column in a row foreach ($row as $value) { echo ''; } echo ''; } echo '
'.$row[0]."
'.$value.'
'; $result->close(); echo ''; echo_foot(); ?>