
//Customer Name:
<select name="name">
<%
try{
Class.forName("com.mysql.jdbc.Driver");
Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/scs","root","root");
Statement st=con.createStatement();
String sql="select * from staff";
ResultSet rs=st.executeQuery(sql);
while(rs.next()){
//String name = rs.getString("name");
} %> <option value="<%=rs.getString("fname")%>"></option>
<%
}catch(Exception e){
}
%>
</select>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
