One Stop Guide is a polished city discovery website for Indian destinations, combining static city pages with a dynamic database-powered city explorer.
This project delivers a clean travel discovery experience for Indian cities. It includes:
- A responsive homepage with city cards and city-specific links.
- Static city pages for destination highlights.
- A dynamic
city.phppage that loads city data from MySQL. - Shared styles and behavior for consistent UI across the site.
- A simple database schema for city entries, hospitals, schools, cafes, and popular landmarks.
- Static homepage with city cards, Explore buttons, and direct city links.
- Dynamic city listing via
city.phpthat reads from thecity_datatable. - City filtering using query parameters like
city.php?city=Sikar. - Featured cities based on database entry count.
- Responsive navigation with dropdown and mobile hamburger menu.
- Clean layout with shared header/footer, cards, buttons, and hero sections.
This project is organized into three main layers:
-
Presentation layer
index.html— homepage with city cards and navigation.*.htmlcity pages — individual city details and local highlights.style.css— site-wide styling and responsive design.script.js— dropdown menu, mobile menu, button interactions, and Sikar page behavior.
-
Application layer
city.php— dynamic page that loads city rows from MySQL.dbconnect.php— database connection helper with graceful error handling.
-
Data layer
CityGuideDb.sql— database schema, sample data, and city entries.
The city_data table stores city-level entries with the following fields:
id— Auto-increment record IDstate_name— Optional state or region namecity_name— City identifierplace_name— Place, hospital, college, school, or cafe nameplace_type— Category of the placedescription— Short details for each entry
The project uses city_name to filter specific city pages and build the featured city list.
- Clone the repository:
git clone https://github.com/komalkhatod1105/One-Stop-Guide.git
cd One-Stop-Guide- Create the database:
-- Run this inside MySQL or phpMyAdmin
SOURCE CityGuideDb.sql;- Configure the database connection in
dbconnect.php:
$host = "localhost";
$user = "root";
$password = "";
$database = "CityGuideDB";- Run the project from a PHP-enabled web server:
- Use XAMPP / WAMP / MAMP
- Or run with PHP built-in server:
php -S localhost:8000- Open the site in your browser:
http://localhost:8000/index.htmlhttp://localhost:8000/city.php
- Open
city.phpto view all database entries. - Open
city.php?city=Sikarto view Sikar-specific content. - The
Sikarpage now connects its Show Less button tocity.php?city=Sikar. - The homepage dropdown gives access to all static city pages.
The database currently stores entries for:
- Ajmer
- Aligarh
- Burdwan
- Delhi
- Fatehpur
- Jaipur
- Kishangarh
- Kota
- Kolkata
- Laxmangarh
- Pune
- Ratangarh
- Sikar
Each city includes places, hospitals, colleges, schools, and cafes.
You can easily extend the project by:
- adding more cities to
CityGuideDb.sql - creating new static city pages
- improving the homepage cards and navigation
- enhancing
city.phpwith category filters or search
Contributions are welcome! If you want to help, please:
- Fork this repository
- Create a feature branch
- Make your improvements
- Open a pull request
This project is licensed under the MIT License.
Komal Khatod — https://github.com/komalkhatod1105