odbc_result_all

int odbc_result_all(resource result, [string format]) 

Displays all result data.

Returns:

Row in a result set; FALSE on error

Description:

A handy function for quickly outputting the contents of a result set in an HTML table. You can modify the appearance of the table using the optional format string.

Version:

PHP 3.0.6

Example:

Display data in table
$db = odbc_connect("DSN","user","pass"); 
$result = odbc_exec($db,"SELECT * FROM Employees ORDER BY LastName"); 
odbc_result_all($result,"border=0"); 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.