final touches

main
Prashant_joshi 6 months ago
parent ff9b1de785
commit 097db69db4
  1. 16
      donorhome.css
  2. 3
      donorhome.php
  3. 2
      receiver.php

@ -89,3 +89,19 @@ button:hover{
background-color: #218838;
}
#share {
padding: 10px 20px;
background-color: blue; /* Change to blue */
color: white;
font-size: 16px;
text-align: center;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
#share:hover {
background-color: darkblue; /* Darker blue on hover */
}

@ -79,6 +79,7 @@ mysqli_close($conn);
<div class="actions">
<button id="donate-food">Donate Food</button>
<button id="share" class="SHARE">Share</button>
<button id="toggle-history-btn" class="toggle-btn">Show Contribution History</button>
</div>
@ -87,7 +88,7 @@ mysqli_close($conn);
<div class="history-section" id="history-section">
<h2>Contribution History</h2>
<?php if (empty($donations)): ?>
<p>Donated 10 kg of Vegetables from Anamnagar on 2025-01-12 22:25:37. Expires on 2025-01-20.</p>
<p>No donation history.</p>
<?php else: ?>
<ul id="history-list" class="history-list">
<?php foreach ($donations as $donation): ?>

@ -20,7 +20,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
$sql = "INSERT INTO recipient (name, location, food_needs) VALUES ('$name', '$location', '$foodNeeds')";
if ($conn->query($sql) === TRUE) {
$message = "Your request has been matched. Food type: Vegetables , Pickup Location: Anaamnagar ";
$message = "Your request has been matched. Food type: Vegetables , Pickup Location: Anamnagar ";
} else {
$message = "Error: " . $sql . "<br>" . $conn->error;
}

Loading…
Cancel
Save