see why is is not working

its not taking combo name why

<%@page import="java.sql.*"%>

        <select name="combo">        
            <option value="1">railway</option> 
            <option value="2">railway station</option> 


            String name = request.getParameter("combo");

            String sq = "select * from vehicle where ride_add='" + name + "'";

            Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/auto", "root", "123456");

            Statement sta = con.createStatement();
            ResultSet ra = sta.executeQuery(sq);
            while ( {




Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.