Hi this is my first post...Hope to find answer this >.<
alert(alertNo
, sqlstat
, dbName
, username
, password
, ipAddr
, recipient
, comments
)
<select multiple name="recipient">
<option value="select">select</option>
while (rs.next()) {
String recipient = rs.getString("hp") + " "
+ rs.getString("lastname");
%>
<option value=<%=recipient%>><%=recipient%></option>
<%
}
} catch (SQLException sqe) {
out.println("home" + sqe);
}
%>
</select>
I hope to save multiple value into the same column(recipient). This is my insert statement.
String sql = "INSERT INTO alert(sqlstat, dbName, username, password, ipAddr,recipient, comments)"+ "VALUES(?,?,?,?,?,?,?)";
|Recipient |
|12345678 |
this is my current result.
I hope to get something like
|Recipient |
|12345678,87654321 |