note 90532 added to function.odbc-tables

From: Date: Mon, 27 Apr 2009 07:38:07 +0000
Subject: note 90532 added to function.odbc-tables
Groups: php.notes 
Request: Send a blank email to php-notes+get-153801@lists.php.net to get a copy of this message
I've been toying around, trying to do this as simple, safe and fast and possible. <?php /* Setup ODBC Connection */ if(!$odbc['connection'] = odbc_connect('DNS','USER','PASS')) { exit("Connection Failed<br />\n"); } else { echo("Connected<br />\n"); } /* Fetches The Tables Into an Array*/ if($result = odbc_tables($odbc['connection'])) { while(odbc_fetch_row($result)) { $odbc['rows']['tables'][] = odbc_result($result,"TABLE_NAME"); } odbc_free_result($result); } /* Close The Connection */ if(odbc_close($odbc['connection'])) { odbc_close($odbc['connection']); } /* Print The Array */ if(!empty($odbc['rows'])) { print_r($odbc['rows']); } ?> ---- Server IP: 80.67.2.2 Probable Submitter: 89.253.82.225 ---- Manual Page -- http://www.php.net/manual/en/function.odbc-tables.php Edit -- https://master.php.net/note/edit/90532 Del: integrated -- https://master.php.net/note/delete/90532/integrated Del: useless -- https://master.php.net/note/delete/90532/useless Del: bad code -- https://master.php.net/note/delete/90532/bad+code Del: spam -- https://master.php.net/note/delete/90532/spam Del: non-english -- https://master.php.net/note/delete/90532/non-english Del: in docs -- https://master.php.net/note/delete/90532/in+docs Del: other reasons-- https://master.php.net/note/delete/90532 Reject -- https://master.php.net/note/reject/90532 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#153801) next »