[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.8

diplaying a record from the database using an ID in Active Server Pages

Asked by msberth in Miscellaneous Web Development, Web Development

Tags: desining, border, box, database

i am desining a website that sells plants over the net. so i want a code in ASP that when providing the plant id it picks the plant name from the database and places it along the plant id.
e.g plant name: 1001 Lily

this is what i have
<HTML>

   <HEAD>


   <TITLE>payments</TITLE>
   </HEAD>
   <BODY BGCOLOR=>



<div id="Layer1" style="position:absolute; left:-70px; top:0px; width:300px; height:150px; z-index:1">

<table bordercolor="#66ccff" border="1" width= hieght= align="center" CELLPADDING="0" CELLSPACING="0">
<tr>
  <td align="left" ><IMG SRC="staff.gif" BORDER="0" align="" WIDTH=140 HEIGHT=60 ><br><br>

<a href="frame2.html"><IMG SRC="leaf2.gif" BORDER="0" align="" WIDTH=30 HEIGHT=30
ALT="staff login" ><strong>logoff</strong></a><br><br>

  <a href="addplants.html"><IMG SRC="leaf2.gif" BORDER="0" align="" WIDTH=30 HEIGHT=30
ALT="add plants" ><strong>add plants </strong></a><br><br>

<a href="myproject.html"><IMG SRC="leaf2.gif" BORDER="0" align="" WIDTH=30 HEIGHT=30
ALT="delete customers" ><strong>delete customer</strong></a><br><br>

<a href="payments.html"><IMG SRC="leaf2.gif" BORDER="0" align="" WIDTH=30 HEIGHT=30
ALT="Payments" ><strong>payments</strong></a><br><br>

</td>
</tr>
</table>
</div>

<div id="Layer1" style="position:absolute; left:150px; top:60px; width:400px; height:150px; z-index:1">


<table bordercolor="336633" border="1" width= hieght= align="center" CELLPADDING="0" CELLSPACING="0">
   <tr>
  <td>
<FORM ACTION="payments.asp" METHOD="post">
<INPUT TYPE="hidden" NAME="subject" VALUE="Title of Form">

<table bordercolor="ffff99" border="0" width= hieght= align="center" CELLPADDING="0" CELLSPACING="0">
   <tr>
       <td>Customer Name</td>

       <td><INPUT TYPE="text" NAME="My Single-Line Text Box"
                          SIZE=6 MAXLENGTH=5 ><INPUT TYPE="text" NAME="My Single-Line Text Box"
                          SIZE=34 MAXLENGTH=75 ></td>
   </tr>
       <td>Plant </td>

       <td><INPUT TYPE="text" NAME="My Single-Line Text Box"
                          SIZE=6 MAXLENGTH=5 ><INPUT TYPE="text" NAME="My Single-Line Text Box"
                          SIZE=34 MAXLENGTH=75 >
       </td>
  </tr>
 
  <tr>
       <td>Price</td>

       <td><INPUT TYPE="text" NAME="My Single-Line Text Box"
                          SIZE=20 MAXLENGTH=75 ></td>
   </tr>
       <td>Date</td>

       <td><INPUT TYPE="text" NAME="My Single-Line Text Box"
             SIZE=20 MAXLENGTH=75 ></td>
  </tr>

  <tr>
       <td>Staff Name</td>

       <td><INPUT TYPE="text" NAME="My Single-Line Text Box"
                          SIZE=6 MAXLENGTH=5 ><INPUT TYPE="text" NAME="My Single-Line Text Box"
                          SIZE=34 MAXLENGTH=75 ></td>
   
 
    <tr>
       <td>Credit card no</td>

       <td><INPUT TYPE="text" NAME="My Single-Line Text Box"
                          SIZE=40 MAXLENGTH=75 ></td>
   </tr>
       
  <tr>
        <td></td>  
        <td><INPUT TYPE="submit" value="Accept payment">
        <INPUT TYPE="reset"></td>
  </tr>


</table>
</td>
</tr>
</table>
</FORM>

<a href="frame5.html"><strong>register customer</strong></a>

</div>


<div id="Layer1" style="position:absolute; left:220px; top:0px; width:100px; height:100px; z-index:1">
<p><b><font size=14 color="green">Payments</b></p>
</div>


<div id="Layer1" style="position:absolute; left:600px; top:70px; width:300px; height:150px; z-index:1">
<IMG SRC="chflow.gif" BORDER="0" align="" WIDTH=140 HEIGHT=200 >

</div>


 </BODY>

   </HTML>


ASP

<HTML>

   <HEAD>


   <TITLE>Payments</TITLE>
   </HEAD>
   <BODY BGCOLOR=>

<%
Dim Conn, Rs, sql,ID,pass,custid
ID = Request.Form("Custid")
Set Conn = Server.CreateObject("ADODB.Connection")
Set Rs = Server.CreateObject("ADODB.Recordset")
Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("plants.mdb")
sql= "SELECT * FROM passwords WHERE username= '" & ID & "'"
Rs.Open sql, Conn
'Rs = Conn.execute(sql)
Response.write(Rs("Username") )
'Response.write(Rs("Password") )
pass= (RS("password"))
custid= (RS("username"))  
Conn.Close
Set Rs=Nothing
Set Conn = Nothing

%>


Your name: <b><%=pass%></b><br>


</BODY>

   </HTML>
[+][-]03/18/04 08:53 AM, ID: 10625509Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Miscellaneous Web Development, Web Development
Tags: desining, border, box, database
Sign Up Now!
Solution Provided By: dgooding
Participating Experts: 2
Solution Grade: B
 
[+][-]03/18/04 05:59 AM, ID: 10623771Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/18/04 09:02 AM, ID: 10625578Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/18/04 09:33 AM, ID: 10625871Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/01/04 06:34 PM, ID: 10737773Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/30/04 10:37 AM, ID: 10962147Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92