D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
proc
/
self
/
root
/
home
/
markniuj
/
bazmeasar.com
/
favorite
/
Filename :
6cat.php
back
Copy
<?php include "../config.php"; // Retrieve the admin's favorite categories from the database $favorite_categories_query = "SELECT catname FROM categories"; $favorite_categories_result = $conn->query($favorite_categories_query); // Check if there are favorite categories if ($favorite_categories_result->num_rows > 0) { echo "<h2>Your Favorite Categories</h2>"; echo "<ul>"; while ($favorite_category_row = $favorite_categories_result->fetch_assoc()) { $catname = $favorite_category_row['catname']; echo "<li>$catname</li>"; } echo "</ul>"; } // Rest of your home page content... ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Home Page</title> </head> <body> <h1>Welcome to Your Home Page</h1> <!-- Your home page content --> </body> </html>