[EMAIL PROTECTED] (J.M. Cocchini) writes:
> $result = odbc_do($connection,"select * from events where id=$id");
> odbc_fetch_row($result);
> Am not understanding how to "print()" the fields in the rows, one after
> the next, on the same line, and then do the same with the next record,
> until all records have been presented.

>From the manual: "After odbc_fetch_row() is called, the fields of that
row can be accessed with odbc_result()."
It returns true on success, so test for this as well.

odbc_result() is described on

then you might find the c-like printf() a nice function to output the
strings, but that is subject to preference ;-)

"Why be a man when you can be a success?"
                -- Bertold Brecht

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to