Skip to content

Naf66/lost_found

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽ’ University Lost & Found Platform

A community-driven web platform that helps university students report lost items, post found belongings, and reconnect owners with their valuables.

Built as a Web Engineering course project using PHP, MySQL, HTML, CSS, and JavaScript.


๐Ÿš€ Features

Authentication & User Management

  • User Registration
  • Secure Login System
  • Password Hashing
  • Session-Based Authentication
  • Logout Functionality
  • Profile Management
  • Profile Picture Upload

Lost & Found System

  • Create Lost/Found Posts
  • Upload Item Images
  • Browse Community Posts
  • View Poster Information
  • Contact Information Display
  • Edit Own Posts
  • Delete Own Posts

Security Features

  • Password Hashing using password_hash()
  • Password Verification using password_verify()
  • Session-Based Access Control
  • Ownership Verification for Editing/Deleting Posts

๐Ÿ› ๏ธ Tech Stack

Frontend

  • HTML5
  • CSS3
  • JavaScript

Backend

  • PHP

Database

  • MySQL

Development Environment

  • XAMPP

๐Ÿ—„๏ธ Database Structure

student_data

Stores user information:

Field Description
id User ID
name Full Name
email Email Address
phone Contact Number
dept Department
password Hashed Password
profile_pic Profile Image Path

lost_found

Stores lost/found item posts:

Field Description
id Post ID
user_id Owner of Post
title Item Title
description Item Description
category Item Category
location Last Seen/Found Location
image Item Image
status Lost or Found
created_at Post Creation Time

๐Ÿ”— Database Relationship

One user can create multiple posts.

student_data.id
        โ”‚
        โ–ผ
lost_found.user_id

The project uses SQL JOIN queries to combine user information with post information.


๐Ÿ“‚ Project Structure

lost_found/
โ”‚
โ”œโ”€โ”€ index.php
โ”œโ”€โ”€ register.php
โ”œโ”€โ”€ login.php
โ”œโ”€โ”€ logout.php
โ”œโ”€โ”€ dashboard.php
โ”‚
โ”œโ”€โ”€ create_post.php
โ”œโ”€โ”€ posts.php
โ”œโ”€โ”€ my_posts.php
โ”œโ”€โ”€ edit_post.php
โ”œโ”€โ”€ delete_post.php
โ”‚
โ”œโ”€โ”€ edit_profile.php
โ”œโ”€โ”€ db.php
โ”‚
โ”œโ”€โ”€ uploads/
โ”‚   โ”œโ”€โ”€ default.png
โ”‚   โ””โ”€โ”€ items/
โ”‚
โ”œโ”€โ”€ style.css
โ”‚
โ””โ”€โ”€ README.md

โš™๏ธ Installation

1. Clone Repository

git clone https://github.com/Naf66/lost_found.git

2. Move Project

Place the project folder inside:

xampp/htdocs/

3. Start XAMPP

Start:

  • Apache
  • MySQL

4. Create Database

Create a database:

lost_found

5. Import Tables

Import the provided SQL file from db.txt or create the required tables manually.

6. Configure Database

Update db.php:

$conn = mysqli_connect(
    "localhost",
    "root",
    "",
    "lost_found"
);

7.Create an upload and item folder

In the main directory create an uploads folder

And also create /uploads/items

8.Run Project

Open:

http://localhost/lost_found

๐Ÿ“š Concepts Practiced

This project helped me learn:

  • CRUD Operations
  • Authentication Systems
  • Session Management
  • Password Hashing
  • Relational Databases
  • SQL JOIN Queries
  • File Upload Handling
  • Dynamic Content Rendering
  • User Authorization
  • Responsive UI Design

๐Ÿ”ฎ Future Improvements

  • Search Functionality
  • Post Filtering
  • Mark Item as Resolved
  • Email Notifications
  • Admin Dashboard
  • Responsive Mobile Design
  • Prepared Statements for Improved Security

๐Ÿ‘จโ€๐Ÿ’ป Author

Md. Mohaimin-ul-Mohsin

Web Engineering Course Project

GitHub: https://github.com/Naf66


๐Ÿ“„ License

This project was developed for educational purposes.

๐Ÿ“ธ Screenshots

๐Ÿ  Landing Page

Landing Page


๐Ÿ“‹ Browse Posts

Browse Posts


โž• Create Post

Create Post


๐Ÿ‘ค User Dashboard

Dashboard

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors