note 37891 deleted from function.odbc-data-source by cmb
| From: | cmb@php.net | Date: | Wed, 23 Sep 2020 11:06:13 +0000 |
| Subject: | note 37891 deleted from function.odbc-data-source by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215460@lists.php.net to get a copy of this message | ||
Note Submitter: angelo [at] spaceblue [dot] com
----
// Example usage:
// Connect to a ODBC database that exists on your system
$link = odbc_connect("some_dsn_name", "user", "password") or
die(odbc_errormsg() );
$result = @odbc_data_source( $link, SQL_FETCH_FIRST );
while($result)
{
echo "DSN: " . $result['server'] . " - " .
$result['description'] . "<br>\n";
$result = @odbc_data_source( $link, SQL_FETCH_NEXT );
}
odbc_close($link);