sql+php: how to display the whole table if you know table name only (no # of

NumNoum

New member
columns, no names)? //to display the whole table:
$sqlstring="select firstname, lastname from people";
....
while($row = mysql_fetch_array($res))
{
echo "<td>".$row['firstname]. "</td><td>".$row['lastname]."</td>";
}

//This is how to display the whole table if we know it contains two columns.
But, how to display the whole table if you know only table's name?
 
Back
Top