note 58482 added to function.odbc-tables
| From: | narcomweb at wanadoo dot fr | Date: | Sat, 05 Nov 2005 17:33:16 +0000 |
| Subject: | note 58482 added to function.odbc-tables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-98133@lists.php.net to get a copy of this message | ||
Here a Code for listing Table names
<?php
$dbh = odbc_connect($dsn, $user, $pwd);
$result = odbc_tables($dbh);
$tables = array();
while (odbc_fetch_row($result)){
if(odbc_result($result,"TABLE_TYPE")=="TABLE")
echo"<br>".odbc_result($result,"TABLE_NAME");
}
?>
You don't have views or System tables with.
Only simple tables in your database.
----
Manual Page -- http://www.php.net/manual/en/function.odbc-tables.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58482
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58482&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58482&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58482&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58482&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58482&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58482&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58482&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58482&report=yes
Search -- http://master.php.net/manage/user-notes.php