Here is a script that you could use... I don't know if it fits you need but anyway... It's not wery complex. It doesn't print the names of the fields but it's something to buid from...
How to use:
Put the script into a file called "quickselect.php" or something like that and call it by doing something like this
<?php
$table = 'myTable';
include("quickselect.php);
?>
You need to have already opened a mysql connection and chosen a database. And you also need to close the mysql connection in the end.
--- Begin Script ---
<?php
print "<br>Showing table $thetable<br>";
$result = mysql_query("SELECT * FROM $thetable"); // get all entrys
$numfld = mysql_num_fields($result);
print '<table border=1>';
while($row = mysql_fetch_row($result)) // next row
{
$i = 0;
print '<tr>';
while($numfld > $i) // next field
{
print "<td>$row[$i]</td>"; // print field
$i++;
}
}
print '</tr></table>';
?>
--- End Script ---
Andreas Bernhardsen
Graficonn