RE: [PHP-DB] Display results of ODBC query
| From: | Andrew Hill | Date: | Thu, 06 Jul 2000 20:11:41 +0000 |
| Subject: | RE: [PHP-DB] Display results of ODBC query | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-914@lists.php.net to get a copy of this message | ||
Well, you could use odbc_result_all($result)
Best regards,
Andrew
----------------------------------------------------
Andrew Hill
Professional Services Consultant
OpenLink Software
http://www.openlinksw.com
Universal Database Connectivity Technology Providers
-----Original Message-----
From: Todd Cary [mailto:todd@aristesoftware.com]
Sent: Thursday, July 06, 2000 4:13 PM
To: php-db@lists.php.net
Subject: [PHP-DB] Display results of ODBC query
I have gotten this far; now I need to know how to display the results.
Sorry for such beginners questions!
<?php
$user="SYSDBA";
$password="masterkey";
$host="case_odbc";
$stmt="SELECT CaseCode FROM Cases";
$casedb=odbc_connect($host,$user,$password);
$result=odbc_do($casedb,$stmt);
odbc_close($casedb);
?>
Moving ahead...slowly....
Todd
--
Todd Cary
Ariste Software
todd@aristesoftware.com
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net