odbc_result_all() formats and displays all rows produced by odbc_exec() or odbc_execute().
Its syntax is: int odbc_result_all (int result_ID [, string table_format])
<?
$connect = @odbc_connect("myAccessDB", "user", "secret") or die("Could not connect to ODBC database!");
$query = "SELECT * FROM customers";
$result = odbc_exec($connect, $query) or die("Couldn't execute query!");
odbc_result_all($result, "BGCOLOR='#c0c0c0' border='1'");
odbc_close($connect);
?>
Related examples in the same category