Current location: Hot Scripts Forums » Programming Languages » PHP » having trouble


having trouble

Reply
  #1 (permalink)  
Old 03-12-04, 03:19 PM
Primitive_screw Primitive_screw is offline
Newbie Coder
 
Join Date: Dec 2003
Location: IL
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
having trouble

i have a form that adds names and emails to a database.
i got it where it can display all the information from that table.

what i want to do is have a way for a user to choose from a option box the name they want to see and when they chose, it brings up just thats person name information that they choosing.

how do i get it where the option they choose from the option/list box the where section of the query statement. $query"Select * from members where members.??=members.??

if have the reference point primary key as id

what do i need to set the <option value=""> to so it puts the right variable into the select statement?


what im trying to do is like a all members page for a forum and like when you select or click on a link, it brings up thats person personal information
Reply With Quote
  #2 (permalink)  
Old 03-12-04, 03:38 PM
comete comete is offline
Newbie Coder
 
Join Date: Nov 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
You'll need to create your list box from the values in your members table. You'll have to create a query that will contain the names and IDs, then populate your list box with that.

You just use a FOR loop to go though your array of names and create your list box from there.

I hope this helps.
Reply With Quote
  #3 (permalink)  
Old 03-12-04, 03:50 PM
Primitive_screw Primitive_screw is offline
Newbie Coder
 
Join Date: Dec 2003
Location: IL
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
not what i meant

i already got it running threw a loop to display the name for the visible choice and i got the value set to the id so when they select like "me" and the id is 1 and they send it it goes to another page or the same page i know you can do, that and uses that id value to select that row of info and i run it threw another loop to bring the info out to a waiting table to display the info.
Reply With Quote
  #4 (permalink)  
Old 03-12-04, 03:59 PM
Primitive_screw Primitive_screw is offline
Newbie Coder
 
Join Date: Dec 2003
Location: IL
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
dont i need to do this?

isnt pretty much force feeding the get url the way you want it and from that url it takes the values and runs the search on it?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! I facing trouble by linking access database Kenyiew ASP 1 01-25-04 08:52 PM
perl/cgi newbie. hangman.cgi script adding html-like code on web and other trouble Arowana Perl 12 11-13-03 02:24 PM
Crop-down js menu trouble in NS Arowana JavaScript 0 11-07-03 05:07 AM
Need PHP Solution - Having Trouble Finding One teamofdreamers PHP 1 10-20-03 03:58 AM
Trouble with parameter passing in URLs and str_replace crookyboy PHP 2 09-16-03 05:30 AM


All times are GMT -5. The time now is 10:19 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.