Refactor database interactions and schema updates
- Updated column names in insert_data.php and update_data.php to match the database schema. - Added new tables for 'jalan', 'parsil', and 'jalan_rusak' in spbu_db.sql to enhance data structure. - Changed admin password hash in spbu_db.sql for security improvements.
This commit is contained in:
@@ -11,7 +11,7 @@ if($id == "" || $nama == "" || $no == "" || $status == ""){
|
||||
exit;
|
||||
}
|
||||
|
||||
$stmt = $conn->prepare("UPDATE spbu SET nama_spbu=?, no_spbu=?, status=? WHERE id=?");
|
||||
$stmt = $conn->prepare("UPDATE spbu SET nama=?, no_spbu=?, status=? WHERE id=?");
|
||||
$stmt->bind_param("sssi", $nama, $no, $status, $id);
|
||||
|
||||
if($stmt->execute()){
|
||||
|
||||
Reference in New Issue
Block a user