Page 1 of 1

Displaying table field/column names

Posted: Sun Dec 21, 2003 6:33 pm
by fstrnu
Hello.

I am attempting to display the contents of a table and, naturally, would like to include the column/field names at the top of the output. The following code with print out the 1st column name, so I am getting close, and have tried several ways to get it to print the remaining columns, but no luck. Help, please. Many thanks in advance....


$columns = odbc_columns ($connection, "PC.mdb", "", "results");

$item = odbc_result($columns, 4);

print "$item";