prepare("INSERT INTO spbu_locations (nama_spbu, no_hp, kategori, latitude, longitude) VALUES (?, ?, ?, ?, ?)"); // Perhatikan: huruf sssdd (5 huruf untuk 5 variabel) $stmt->bind_param("sssdd", $nama, $hp, $kategori, $lat, $lng); if ($stmt->execute()) { echo "Data SPBU berhasil disimpan!"; } else { echo "Gagal menyimpan data: " . $conn->error; } $stmt->close(); $conn->close(); }