Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

drop-down box choice to retrieve data from db

Status
Not open for further replies.

BettyJo50

Technical User
Apr 25, 2002
47
US
HI!!

I have a question/problem. I have a column in the database called Project. There are 3 projects...we'll call them A, B and C. I have created a drop-down box to choose one of them. After selecting one of the 3, I would like to display the records of the one project selected, but I'm not sure how to do that.

Here is some my code:

$SQL="SELECT * FROM SERVERREQUEST WHERE PROJECT='".$proj."'" ;

//drop-down box
<form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;&quot;>
<select name=&quot;proj&quot;>
<option selected>Select.....</option>
<option value=&quot;A&quot;>A</option>
<option value=&quot;B&quot;>B</option>
<option value=&quot;C&quot;>C</option>
</select>
</form>

? if ($proj) { ?>
<table width=&quot;75%&quot; border=&quot;0&quot; cellpadding=&quot;3&quot; height=&quot;504&quot; align=&quot;center&quot;>
<tr>
<td colspan=&quot;2&quot; height=&quot;43&quot;>
<b>OASIS Vendor Server Registration</b>
<hr>
</td>
</tr>
//then the rest of the table

<? } ?>

</table>

Can someone please help me!?

THANK YOU!!!
 
I'm sorry! Yes, I believe I have figured it out.

THANK YOU!!! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top