Searching system
This commit is contained in:
@@ -55,6 +55,8 @@ public class ChannelDatabase {
|
||||
try (Connection conn = ConnectionDb.connect();
|
||||
PreparedStatement stmt = conn.prepareStatement(sql)) {
|
||||
stmt.setString(1, "%" + keyword + "%");
|
||||
stmt.setString(2, keyword);
|
||||
|
||||
ResultSet rs = stmt.executeQuery();
|
||||
while (rs.next()) {
|
||||
Channel channel = new Channel(
|
||||
|
||||
Reference in New Issue
Block a user