CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Displaying table names in a listbox

Print topic Send  topic

Author Message
mcsalp

Posts: 4
Posted: 02/01/2006, 2:44 PM

I've been partly successful in displaying mysql table names in a listbox by setting the listbox datasource to "show table status from databasename like '%'" but the dropdown just shows InnoDB for every table and does not display the table names.

Any help would be greatly appreciated.
View profile  Send private message
eiden


Posts: 34
Posted: 02/03/2006, 4:15 PM

I'm not 100% sure of what you mean, but you can set the datasource to SQL and use: describe [tablename]

Example:
  
describe content  
  
returns:  
+-------------------+  
| Field             |  
+-------------------+  
| ContentId         |  
| Section           |  
| Title             |  
| Heading           |  
| Body              |  
| Published         |  
| PublishedByUserId |  
| DatePublished     |  
| DatePublishStart  |  
| DatePublishEnd    |  
+-------------------+  
  
View profile  Send private message
mcsalp

Posts: 4
Posted: 02/03/2006, 7:42 PM

Thanks for your help Eiden. Let me try to clarify.

I have a listbox that I'm trying to populate with the list of tables in the current database(MySQL).
View profile  Send private message
Walter Kempees
Posted: 02/04/2006, 4:09 AM


The SQL commands
SHOW TABLES FROM databasename
SHOW TABLE STATUS FROM databasename

Should work, if the result is less than expected, the I would suggest your
users access level is not allowing you these operations.


"mcsalp" <mcsalp@forum.codecharge> schreef in bericht
news:643e422c38f95d@news.codecharge.com...
> Thanks for your help Eiden. Let me try to clarify.
>
> I have a listbox that I'm trying to populate with the list of tables in
> the
> current database(MySQL).
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.