Well, you should reference the manual on php.net for help with the commands. But first you would setup you connect string:
$connect = odbc_connect( 'SYSTEM_DSN' , 'USER', 'PASSWORD' );
//then setup your cursor
$cur= odbc_exec( $connect, "select * from $table" );
//then setup your loop
$nbrow=0;
while( odbc_fetch_row($cur) ) {
$nbrow++;
$output = odbc_result($cur, 1);
//echo the output with a new line after each one
echo $output;
echo "<br>";
//close your connection
odbc_close($connect);
All other HTML formatting you can add in there somewhere, but that's the basics. Enjoy 🙂