SunQuest
           PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old June 7th, 2002, 12:41 AM
TheFallibleFiend TheFallibleFiend is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 TheFallibleFiend User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to TheFallibleFiend
listing tables in a microsoft access db


Just starting.

Using PHP, I can open a database and list the fields in a table or get the contents of the table. However, I would like to be able to get a list of the tables. Is there a way to do this from php? The only examples I've seen on the net so far do not work (for me).

thanks,
k

Reply With Quote
  #2  
Old June 7th, 2002, 01:10 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: listing tables in a microsoft access db

I don't have access to an Access database to try this, but it should work if you are using ODBC to connect to it.

php Code:
Original - php Code
  1. <?
  2. $db = odbc_connect(blah,blah,blah);
  3. $tables=odbc_tables($db);
  4. while($row = odbc_fetch_row($tables)) {
  5. echo $row['TABLE_NAME'] . "<BR>n";
  6. }
  7. ?>


Let me know how that goes...


Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > listing tables in a microsoft access db


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway