Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Old 12-04-2005, 06:31 AM phpMyAdmin
purk's Avatar
Extreme Talker

Posts: 164
Name: James
Location: marbella & surrey
Trades: 0
anyone know how to make one of my fields in phpMyAdmin behave like a select (option) field with values pulled from the same column.

i.e. school table has subject column (amongst others) which is always either 'x', 'y' or 'z'.

the values could be hardcoded if it's easier.

the sql for the rowsource would be summit like 'select distinct subject from school' but i'm not sure where to apply it.

many thanks

;p
purk is offline
Reply With Quote
View Public Profile Visit purk's homepage!
 
 
Register now for full access!
Old 12-04-2005, 09:42 AM
Republikin's Avatar
Defies a Status

Posts: 3,189
Trades: 3
This is not possible naturally with MySQL (to store data as a select field) however if you were to edit the code for phpMyAdmin you could make that row show up as a select field.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Republikin is offline
Reply With Quote
View Public Profile
 
Old 12-05-2005, 06:56 AM
purk's Avatar
Extreme Talker

Posts: 164
Name: James
Location: marbella & surrey
Trades: 0
hmmm, might look into it some more.

thanks
purk is offline
Reply With Quote
View Public Profile Visit purk's homepage!
 
Old 12-05-2005, 08:03 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
does phpMyAdmin not show enum columns as select boxes?
Most other MySQL GUI tools do
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-05-2005, 08:50 AM
purk's Avatar
Extreme Talker

Posts: 164
Name: James
Location: marbella & surrey
Trades: 0
yes it does. genius.
purk is offline
Reply With Quote
View Public Profile Visit purk's homepage!
 
Old 12-05-2005, 09:14 AM
Republikin's Avatar
Defies a Status

Posts: 3,189
Trades: 3
Well, you learn something everyday huh.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Republikin is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to phpMyAdmin
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.82827 seconds with 12 queries