Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 05-30-2011, 03:52 PM   #1
New Member
 
Join Date: May 2011
Posts: 1
Default Linking listbox to an external database

Hi guys. Below is a listbox from a company intranet site I'm working on. Basically when it's finished you can select an employee from the list and the "changeIt" function will execute to change the display picture to a map of that person's location.
So I could put the several hundred names in the HTML but it would be neater and more useful for us if we could draw from an external file of some sort, that way office services could update the company directory without needing IT to make the changes for them. Trouble is I don't know anything about databases and little about web design, it just wasn't my focus in college Can anyone give me some pointers? Thanks.

<select onchange="changeIt(this.value)" multiple="multiple" name="People" style="height:255px; width:220px">
<option value="image1">Test Name 1</option>
<option value="image2">Test 2</option>
<option value="image3">Test 3</option>
<option value="image4">Test 4</option>
<option value="image2">Test 2</option>
<option value="http://www.tneoh.zoneit.com/cgi/upload">Test 3</option>
<option value="http://www.tneoh.zoneit.com">Test 4</option>
<option value="image2">Test 2</option>
<option value="http://www.tneoh.zoneit.com/cgi/upload">Test 3</option>
<option value="http://www.tneoh.zoneit.com">Test 4</option>
<option value="image2">Test 2</option>
<option value="http://www.tneoh.zoneit.com/cgi/upload">Test 3</option>
<option value="http://www.tneoh.zoneit.com">Test 4</option>
<option value="image2">Test 2</option>
<option value="http://www.tneoh.zoneit.com/cgi/upload">Test 3</option>
<option value="http://www.tneoh.zoneit.com">Test 4</option>
</select>
Classic_Cool is offline   Reply With Quote


Old 06-05-2011, 01:32 AM   #2
Bronze Member
 
websonalized's Avatar
 
Join Date: Mar 2011
Location: California, United States
Posts: 92
Default

There is much involved, database, opening database connection, get table content, assing to array of arrays (assuming php, mysql, and html) and then echoing the html of the list and form to change the table.

Best thing for you to do is to learn the whole process, lynda.com, or hire someone to do it
websonalized is offline   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

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



All times are GMT. The time now is 07:55 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.