prepare($sql); $stmt->bindParam(':status', $status, PDO::PARAM_STR); $stmt->bindParam(':listing_id', $listing_id, PDO::PARAM_INT); if ($stmt->execute()) { header('Location: volunteer_dashboard.php?update=success'); } else { header('Location: volunteer_dashboard.php?update=error'); } } catch (PDOException $e) { // error_log($e->getMessage()); header('Location: volunteer_dashboard.php?update=error'); } exit();