RE: [PHP] ODBC connect
| From: | Andrew Hill | Date: | Tue, 15 May 2001 13:00:03 +0000 |
| Subject: | RE: [PHP] ODBC connect | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52843@lists.php.net to get a copy of this message | ||
Andy,
What information are you trying to get? If "nr" and "name" are fields that
you want values for, then odbc_fetch_row() or odbc_fetch_into() should work
fine. If you are looking for column information, check out odbc_field_name()
and odbc_field_num()
http://www.php.net/manual/en/ref.odbc.php
Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software http://www.openlinksw.com
Universal Data Access & Data Integration Technology Providers
> -----Original Message-----
> From: Andreas Pucko [mailto:andreasp@w3media.com]
> Sent: Monday, May 14, 2001 9:02 PM
> To: Php (E-mail)
> Subject: [PHP] ODBC connect
>
>
> Hi there,
>
> I would like to get information out of a database via ODBC.
>
> I switched from MySQL.
>
> The old syntax does not work which was like:
>
> while ($row = odbc_fetch_row($result))
> {
> printf ("<option value = \"%s\">%s</option>",
> $row->nr,$row->name);
> }
>
>
> so, how do I get the nr and name out of the row??
>
> Any suggestions?
>
> Cheers
>
> Andy
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>