5000) { http_response_code(400); exit('error'); } $statement = mysqli_prepare( $conn, "UPDATE masjid SET nama_masjid = ?, pic_masjid = ?, alamat = ?, radius = ? WHERE id = ?" ); mysqli_stmt_bind_param($statement, "sssdi", $namaMasjid, $picMasjid, $alamat, $radius, $id); try { if (mysqli_stmt_execute($statement)) { echo 'success'; } else { http_response_code(500); echo 'error'; } } catch (mysqli_sql_exception $exception) { http_response_code(500); echo 'error: ' . $exception->getMessage(); } mysqli_stmt_close($statement); ?>