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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Closed Thread
Forms how to change display value
Old 03-03-2011, 02:43 AM Forms how to change display value
drkeni9ma's Avatar
Skilled Talker

Posts: 66
Name: Anakin Skywalker
Trades: 0
Quote:
<option value="1">Apple</option>
<option value="2">Banana</option>
<option value="3">Cat</option>
<option value="4">Dog</option>
<option value="5">Elephant</option>
This is my query..

Quote:
"select DISTINCT * from words where alphabet=1"
and It displays

Quote:
1
Question: How can I display "Apple" ?
__________________
No. Leave them to me. I will deal with them myself. You don't know the power of the dark side!

Last edited by drkeni9ma; 03-03-2011 at 02:44 AM..
drkeni9ma is offline
View Public Profile
 
 
Register now for full access!
Old 03-03-2011, 03:11 AM Re: Forms how to change display value
drkeni9ma's Avatar
Skilled Talker

Posts: 66
Name: Anakin Skywalker
Trades: 0
I've already tried that.. still no display.. I've also tried it on command line.. and the alphabet is value to 1..
__________________
No. Leave them to me. I will deal with them myself. You don't know the power of the dark side!

Last edited by drkeni9ma; 03-03-2011 at 03:14 AM..
drkeni9ma is offline
View Public Profile
 
Old 03-03-2011, 04:39 PM Re: Forms how to change display value
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by drkeni9ma View Post
This is my query..



and It displays



Question: How can I display "Apple" ?
With what you have told us up to now ... the anwser is. ...









You can't.


HTML cannot query the database and return values of any kind.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Old 03-03-2011, 06:55 PM Re: Forms how to change display value
drkeni9ma's Avatar
Skilled Talker

Posts: 66
Name: Anakin Skywalker
Trades: 0
@chrishirst why? even if I use a 'case' or if-statements?
__________________
No. Leave them to me. I will deal with them myself. You don't know the power of the dark side!
drkeni9ma is offline
View Public Profile
 
Old 03-04-2011, 06:09 AM Re: Forms how to change display value
cbeaudin's Avatar
Extreme Talker

Posts: 158
Name: cbeaudin
Location: Proud to be Canadian
Trades: 1
What language are you using to query the database and what does the table structure look like. If you are using php or asp posting that code will help.
__________________
- cbeaudin
cbeaudin is offline
View Public Profile
 
Old 03-04-2011, 03:29 PM Re: Forms how to change display value
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by drkeni9ma View Post
@chrishirst why? even if I use a 'case' or if-statements?
Because HTML (this forum) has no scripting capabilities and cannot query a database.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Closed Thread     « Reply to Forms how to change display value
 

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.27095 seconds with 12 queries