This is a discussion on "displaying database values question" within the Classic ASP section. This forum, and the thread "displaying database values question are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
displaying database values question
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
displaying database values question
here's what i'm trying to do...
i have three columns and i'm grabbing some names from a database. now depending on what the name that comes out of the database is i would like to place it in one of the 3 columns on the page. how would i accomplish this? hopefully i've explained it clearly. thanks. |
|
|
|
||||
|
Re: displaying database values question
What criteria are you using? how many possibilities of 'name' are there?
I would prolly use 2 queries... a 'SELECT DISTICT name' followed by a standard select all. If we had more info I could prolly steer you better however, it does sound like the table you have (in a normalised world) would be better split into two with name as a look up table.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Re: displaying database values question
I have about 13 names that i'm going to be pulling out. Right now they are just displayed in alphabetical order. I'm just having trouble figuring out how I could get a name that starts with O to be in the second column rather than the first, etc. I was thinking about setting up a variable to determine what heading to put it under.
A B C 1 2 3 6 4 8 5 7 12 10 11 13 see the above for an example of what i'm trying to do. i'm kinda new at this thing so sorry for the probably simple question. |
|
|||
|
Re: displaying database values question
i was actually able to figure this one out. thanks for the help though.
|
|
||||
|
Re: displaying database values question
You're most welcome!
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| displaying, database, values, question |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Database info not displaying correctly | WebNinja | PHP Forum | 1 | May 24th, 2008 20:39 |
| Displaying MySQL database tables on a page | vandiermen | PHP Forum | 3 | Jun 30th, 2007 21:58 |
| Query question - can I return values for records not found? | Donny Bahama | Databases | 5 | Aug 21st, 2006 11:39 |
| displaying data from my database | franknu | PHP Forum | 20 | Jun 16th, 2006 09:43 |
| Assign string values to integer values of a session variable | Andy K | Classic ASP | 1 | Jul 13th, 2005 08:29 |