Echo results into a table?
I'm using the following code that does pull the results from a MySQL db, but how can I display the results in a table?
I'm not very familiar with PHP. Any help is greatly appreciated!
<?php
global $wpdb;
$result = $wpdb->get_results( "SELECT * FROM wp_logbook ");
//echo "<pre>"; print_r($result); echo "</pre>";
foreach($result as $row)
{
echo $row->ID." ".$row->FDate." ".$row->Flight." ".$row->Departed." ".$row->Arrived." ".$row->Equipment." ".$row->Distance." ".$row->FTime."<br>";
}
?>
|