| Server IP : 173.209.174.21 / Your IP : 216.73.216.89 Web Server : Apache/2.4.58 (Ubuntu) System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : nodor ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/wcfs/ |
Upload File : |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wilson Creek Farm Supply</title>
<link rel="stylesheet" href="styles.css">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<header>
<div class="logo">
<img src="/Logo-no-bg.png" alt="Wilson Creek Farm Supply Logo">
</div>
<h1>Wilson Creek Farm Supply</h1>
<p class="slogan">.</p>
</header>
<div style="text-align: center; margin-top: 10px; margin-bottom: 20px;">
<a href="payments.html" style="
display: inline-block;
background-color: #4CAF50;
color: white;
padding: 10px 20px;
text-decoration: none;
font-weight: bold;
border-radius: 5px;
box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
">💳 Make a Payment</a>
</div>
<section class="social-links">
<a href="https://www.facebook.com/profile.php?id=61573893936103" target="_blank" aria-label="Facebook">
<img src="/images/FB.png" alt="Facebook">
</a>
<a href="https://www.instagram.com/wilsoncreekfarmsupply/" target="_blank" aria-label="Instagram">
<img src="/images/ig.png" alt="Instagram">
</a>
<a href="https://www.tiktok.com/@wcfs98860" target="_blank" aria-label="TikTok">
<img src="/images/tt.png" alt="TikTok">
</a>
</section>
<main>
<section class="hero">
</p>
<h2>Your trusted source for quality farm supplies and fuel!</h2>
<p class="contact-line">
<strong>Contact us:</strong> 509-345-2572 |
<a href="mailto:info@wilsoncreekfarmsupply.com">info@wilsoncreekfarmsupply.com</a><br>
<strong>Visit us at:</strong> 117 3rd St S, Wilson Creek, WA
<ul class="hero-list">
<li>Beer</li>
<li>Ice</li>
<li>Soda</li>
<li>Fuel</li>
<li>Feed</li>
<li>Hardware</li>
<li>Plumbing</li>
<li>Batteries</li>
<li>Snacks</li>
</ul>
</section>
<section class="promotions">
<h2>Current Updates</h2>
<div class="updates-list">
<!-- Update items will be displayed here -->
</div>
<?php
// Database connection
$conn = new mysqli("localhost", "nodor", "D@n33Nao40", "wcfs");
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// Fetch updates from the database
$sql = "SELECT title, description, image_path, created_at FROM updates ORDER BY created_at DESC";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
echo "<div class='update-item'>";
echo "<h3>" . htmlspecialchars($row['title']) . "</h3>";
echo "<p>" . htmlspecialchars($row['description']) . "</p>";
if (!empty($row['image_path'])) {
echo "<img src='" . htmlspecialchars($row['image_path']) . "' alt='Update Image' class='update-image'>";
}
echo "<small>Posted on: " . date("F j, Y, g:i a", strtotime($row['created_at'])) . "</small>";
echo "</div>";
}
} else {
echo "<p>No updates posted yet.</p>";
}
$conn->close();
?>
</div>
</section>
<section class="carousel">
<div id="imageCarousel" class="carousel-inner">
<div class="carousel-item active">
<img src="/images/20250115_131902.jpg" alt="Farm Supply Image 1">
</div>
<div class="carousel-item">
<img src="/images/20250115_131728.jpg" alt="Farm Supply Image 2">
</div>
<div class="carousel-item">
<img src="/images/20250115_131730.jpg" alt="Farm Supply Image 3">
</div>
<div class="carousel-item">
<img src="/images/20250115_131809.jpg" alt="Farm Supply Image 4">
</div>
<div class="carousel-item">
<img src="/images/20250115_131813.jpg" alt="Farm Supply Image 5">
</div>
<div class="carousel-item">
<img src="/images/20250115_131817.jpg" alt="Farm Supply Image 6">
</div>
<div class="carousel-item">
<img src="/images/20250115_131842.jpg" alt="Farm Supply Image 7">
</div>
</div>
</section>
</main>
<footer>
<p>Contact us: 509-345-2572 | info@wilsoncreekfarmsupply.com</p>
<p>Visit us at: 117 3rd St S, Wilson Creek, WA</p>
</footer>
<script>
document.addEventListener("DOMContentLoaded", function () {
const items = document.querySelectorAll(".carousel-item");
let currentIndex = 0;
function showNextImage() {
items[currentIndex].classList.remove("active");
currentIndex = (currentIndex + 1) % items.length;
items[currentIndex].classList.add("active");
}
// Start the carousel with a 2-second interval
setInterval(showNextImage, 4000);
});
</script>
</body>
</body>
</html>