|
Hey there,
I got a question about how to select. My mysql database table has 3 different names in it and looks like this
id (int 11)
firstname (varchar 100)
username (varchar 100)
additional name (varchar 100)
display name (char 1)
now the user can select which name he/she want to show on the site. And that is saved in the display name which is a char --> f for firstname, u for username, a for additional name.
Now i want to select the name the user selected from the table ordered by that name as well, but how i do that?
select [selected_name] from members order by [selected_name] i am kinda lost..
greetings Martin
|