displaying database values question

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 6th, 2005, 21:43
Junior Member
Join Date: Nov 2005
Age: 25
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote

  #2 (permalink)  
Old Dec 7th, 2005, 07:49
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,951
Blog Entries: 7
Thanks: 7
Thanked 3 Times in 3 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
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
Reply With Quote
  #3 (permalink)  
Old Dec 7th, 2005, 13:50
Junior Member
Join Date: Nov 2005
Age: 25
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #4 (permalink)  
Old Dec 7th, 2005, 21:38
Junior Member
Join Date: Nov 2005
Age: 25
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: displaying database values question

i was actually able to figure this one out. thanks for the help though.
Reply With Quote
  #5 (permalink)  
Old Dec 8th, 2005, 11:45
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,951
Blog Entries: 7
Thanks: 7
Thanked 3 Times in 3 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: displaying database values question

You're most welcome!
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
Reply

Tags
displaying, database, values, question

Thread Tools

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 On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 20:41.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43