BLACKSITE
:
216.73.216.140
:
199.188.200.160 / jeddahhousingltd.com
:
Linux server383.web-hosting.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
:
/
home
/
jeddveug
/
www
/
Upload File:
files >> /home/jeddveug/www/fetch_pricing.php
<?php require_once 'config/db.php'; $selected_sector = $_GET['sector'] ?? 'Sector 1'; $pricings_stmt = $pdo->prepare("SELECT * FROM pricings WHERE project_name = 'Jeddah City' AND sector = :sector ORDER BY id ASC"); $pricings_stmt->execute(['sector' => $selected_sector]); $pricings = $pricings_stmt->fetchAll(); if (!empty($pricings)) { foreach ($pricings as $pricing) { echo '<tr class="hover:bg-primary-50/50 transition-colors group"> <td class="px-8 py-5 text-gray-800 font-semibold border-l-4 border-transparent group-hover:border-gold-400">' . htmlspecialchars($pricing['plot_category']) . '</td> <td class="px-8 py-5 text-center text-gray-600 font-medium">' . number_format($pricing['block_a'], 2) . '/-</td> <td class="px-8 py-5 text-center text-gray-600 font-medium">' . number_format($pricing['block_b'], 2) . '/-</td> <td class="px-8 py-5 text-center text-gray-600 font-medium">' . number_format($pricing['block_c'], 2) . '/-</td> <td class="px-8 py-5 text-center text-gray-600 font-medium">' . number_format($pricing['block_d'], 2) . '/-</td> </tr>'; } } else { echo '<tr> <td colspan="5" class="px-8 py-16 text-center text-gray-400 italic bg-gray-50/30"> <i class="fas fa-layer-group text-4xl mb-3 block opacity-20"></i> No pricing data available for Sector ' . htmlspecialchars($selected_sector) . ' </td> </tr>'; } ?>