Adobe Dreamweaver Forums



Last 10 THreads :         CS4 Div Tags Help Needed (Last Post : Murray *ACE* - Replies : 6 - Views : 7 )           »          absolute images (Last Post : Murray *ACE* - Replies : 1 - Views : 2 )           »          So many issues with CS4 (bugs/rants) (Last Post : Murray *ACE* - Replies : 6 - Views : 7 )           »          Can I Recover my Files? (Last Post : samcec - Replies : 5 - Views : 23 )           »          Character Generator (Last Post : twistedpancreas - Replies : 0 - Views : 1 )           »          add number to global variable? (Last Post : twistedpancreas - Replies : 2 - Views : 3 )           »          Div ? (Last Post : Murray *ACE* - Replies : 5 - Views : 6 )           »          error (Last Post : Murray *ACE* - Replies : 3 - Views : 4 )           »          Help! Prob with CSS display (Last Post : Murray *ACE* - Replies : 1 - Views : 2 )           »          DW help urgently needed, lost my connection to site (Last Post : Murray *ACE* - Replies : 12 - Views : 13 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver Php Development
 
Tags: , , , ,



Reply
  #1 (permalink)  
Old 07-17-2008, 07:51 PM
Peter_T2@adobeforums.com
 
Posts: n/a
Diggs:
Default drop down menu poulated by 2 db columns

I have a form where I enter information into a table. There is a drop down menu in the form where the id is connected to another table. Basically I'm pulling names from another table. I've got an id that connects fine.

However, I'd like to pull 2 columns into the one drop down menu selections. I n my other table I have a firstname and lastname column. I'd like to pull both those columns into the one drop down menu.

Ideally each line in the drop down menu would read "lastname, firstname"

Thanks in advance!

Peter T


Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-18-2008, 04:11 AM
Mohiuddin_Khan_Inamdar@adobeforums.com
 
Posts: n/a
Diggs:
Default Re: drop down menu poulated by 2 db columns

what database are you using ?

u can simply do like this..
for example..

SELECT concat(convert(FirstName using UTF8)," - ",convert(Lastname using UTF8)) as FullName, userid
FROM employees

here i concat two fields Lastname and firstname
this is mysql specific.
if u still cannot do it
post ur table schema here i will write it for u

hope this helps.

Regards.
mohnkhan
<http://www.mohitech.com>
Reply With Quote
Reply


Thread Tools
Display Modes

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

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



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 01:23 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk