diff --git a/assets/pasted-20251014-221708-657b7936.png b/assets/pasted-20251014-221708-657b7936.png new file mode 100644 index 00000000..b6af2e51 Binary files /dev/null and b/assets/pasted-20251014-221708-657b7936.png differ diff --git a/index.php b/index.php index 7205f3d3..d1b5f0cc 100644 --- a/index.php +++ b/index.php @@ -1,150 +1,295 @@ - - + - - - New Style - - - - - - - - - - - - - - - - - - - + + + MajuroEats - Order Food Online + + + + + -
-
-

Analyzing your requirements and generating your website…

-
- Loading… -
-

AI is collecting your requirements and applying the first changes.

-

This page will update automatically as the plan is implemented.

-

Runtime: PHP — UTC

-
-
- + +
+
+ +
+ +
+
+ + +
+
+
+ +
+
+ +
+ +

Featured Restaurants

+ +
+
+ query("SELECT name, cuisine, image_url, address, phone, opening_hours FROM restaurants ORDER BY name"); + $restaurants = $stmt->fetchAll(); + + foreach ($restaurants as $restaurant) { + echo '
'; + echo '' . htmlspecialchars($restaurant['name']) . ''; + echo '
'; + echo '
'; + echo '

' . htmlspecialchars($restaurant['name']) . '

'; + echo '

' . htmlspecialchars($restaurant['cuisine']) . '

'; + echo '
'; + echo '
'; + if (!empty($restaurant['address'])) { + echo '

' . htmlspecialchars($restaurant['address']) . '

'; + } + if (!empty($restaurant['opening_hours'])) { + echo '

' . htmlspecialchars($restaurant['opening_hours']) . '

'; + } + echo '
'; + echo '
'; + echo '
'; + } + } catch (PDOException $e) { + echo '

Error: Could not fetch restaurants from the database.

'; + // Optionally log the error: error_log($e->getMessage()); + } + ?> +
+
+
+ + + + +