CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> Archive -> GotoCode Archive

 retrieve ENUM values out of MySQL?

Print topic Send  topic

Author Message
lukas
Posted: 10/08/2002, 10:22 AM

does anyone knows a way to retrieve ENUM values of a MySQL table for showing them in a listbox?

======
CREATE TABLE `tabUser` (
`userID` int(11) NOT NULL auto_increment,
`nickname` varchar(25) default NULL,
`password` varchar(50) default NULL,
`firstname` varchar(25) default NULL,
`userlevel` varchar(20) default '20',
`name` varchar(25) default NULL,
`yob` year(4) default NULL,
`sex` enum('female','male') default NULL,
`mobile_device` enum('SMS','NOKIA 7650','SonyEricsson T68i') NOT NULL default 'SMS',

=====

thanks

lukas.

Nicole
Posted: 10/09/2002, 7:26 AM

Lukas,
Select mobile_device field for both Text and Buondary columns in ListBox properties.

lukas
Posted: 10/10/2002, 12:21 AM

nicole

that's not working with me... i always get a result set with three entries, which is either empty or filled with three times the same value or something inbetween. depending on the ENUM values...

thanks anyway!

lukas.
Nicole
Posted: 10/11/2002, 5:10 AM

Lukas,
was Data Type have you selected for listbox? I used "text" type and it working for me.

   


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.