note 111637 rejected from function.odbc-data-source by aharvey

From: Date: Mon, 11 Mar 2013 16:21:01 +0000
Subject: note 111637 rejected from function.odbc-data-source by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-194033@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- // Hope it saves my precious time ? // 8 years ago !! <? $DSN = 'Driver={Microsoft Access Driver (*.mdb)};Dbq=test.mdb'; $cnx = odbc_connect( $DSN, '', '' ); if (!$cnx) Error_handler( "### Error in odbc_connect ###" , $cnx ); $result = odbc_data_source( $cnx, SQL_FETCH_FIRST ); if (!$result) echo "### Error in odbc_data_source ###\n"; while($result) { if (strtolower($DSN) == strtolower($result['server'])) { echo $result['description']."\n"; break; } else $result = odbc_data_source( $cnx, SQL_FETCH_NEXT ); } ?> Warning: odbc_data_source() [function.odbc-data-source]: SQL error: Failed to fetch error message, SQL state HY000 in SQLDataSources in \labs_test2.php on line 8 ### Error in odbc_data_source ###

« previous php.notes (#194033) next »