主题:参数不足 期待是1 怎么办
String Recordset1__t1 = "0";
if (request getParameter("queryname") !=null) {Recordset1__t1 = (String)request getParameter("queryname") ;}
%>
<%
String Recordset1__t2 = "0";
if (request getParameter("keyword") !=null) {Recordset1__t2 = (String)request getParameter("keyword") ;}
%>
<%
Driver DriverRecordset1 = (Driver)Class.forName(MM_ynn_DRIVER).newInstance();
Connection ConnRecordset1 = DriverManager.getConnection(MM_ynn_STRING,MM_ynn_USERNAME,MM_ynn_PASSWORD);
PreparedStatement StatementRecordset1 = ConnRecordset1.prepareStatement("SELECT * FROM jingdian WHERE " + Recordset1__t1 + " like '%" + Recordset1__t2 + "%' ORDER BY ID DESC");
ResultSet Recordset1 = StatementRecordset1.executeQuery();
boolean Recordset1_isEmpty = !Recordset1.next();
boolean Recordset1_hasData = !Recordset1_isEmpty;
Object Recordset1_data;
int Recordset1_numRows = 0;
%>
<%
int Repeat1__numRows = -1;
int Repeat1__index = 0;
Recordset1_numRows += Repeat1__numRows;
%>
if (request getParameter("queryname") !=null) {Recordset1__t1 = (String)request getParameter("queryname") ;}
%>
<%
String Recordset1__t2 = "0";
if (request getParameter("keyword") !=null) {Recordset1__t2 = (String)request getParameter("keyword") ;}
%>
<%
Driver DriverRecordset1 = (Driver)Class.forName(MM_ynn_DRIVER).newInstance();
Connection ConnRecordset1 = DriverManager.getConnection(MM_ynn_STRING,MM_ynn_USERNAME,MM_ynn_PASSWORD);
PreparedStatement StatementRecordset1 = ConnRecordset1.prepareStatement("SELECT * FROM jingdian WHERE " + Recordset1__t1 + " like '%" + Recordset1__t2 + "%' ORDER BY ID DESC");
ResultSet Recordset1 = StatementRecordset1.executeQuery();
boolean Recordset1_isEmpty = !Recordset1.next();
boolean Recordset1_hasData = !Recordset1_isEmpty;
Object Recordset1_data;
int Recordset1_numRows = 0;
%>
<%
int Repeat1__numRows = -1;
int Repeat1__index = 0;
Recordset1_numRows += Repeat1__numRows;
%>