prepare('INSERT INTO plants (name, location, capacity, commissioning_date) VALUES (?, ?, ?, ?)'); $stmt->execute([$name, $location, $capacity, $commissioning_date]); $success = 'Plant registered successfully!'; } catch (PDOException $e) { $errors[] = 'Database error: ' . $e->getMessage(); } } } ?> Solyug Tracker - Add Plant

Register New Solar Plant