Update Service

This commit is contained in:
Nikitha
2026-02-22 18:30:12 -07:00
parent 1f784f72d1
commit 567a77c3a7

View File

@@ -22,11 +22,12 @@ public class ServiceDB {
Connection conn = ConnectionDB.getConnection();
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM services");
ResultSet rs = stmt.executeQuery("SELECT * FROM service");
Service service;
while (rs.next()) {
Service service = new Service(
service = new Service(
rs.getInt(1), // service_id
rs.getString(2),// service_name
rs.getString(3),// description