Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hello, I need a project in php language and using MySQL , with documentation for it , and text explaining how to set up and
Hello, I need a project in php language and using MySQL with documentation for it and text explaining how to set up and run the project, without using javascript.
Project Requirements
Project Overview:
Develop a web application where users can register, log in and create
and manage events.
Use objectoriented PHP to structure your code.
Implement secure password storage using hashing.
Use MySQL to store user and event information.
Functional Requirements:
User Registration:
Create a registration form that collects the following
information:
Username must be unique
Password must be securely hashed
Email address must be unique
Validate the input data for proper format and constraints.
Store the user data in a MySQL database.
User Login:
Create a login form that requires a username and password.
Validate the credentials against the stored data in the MySQL
database.
Start a user session upon successful login
Event Management:
Allow loggedin users to create events with the following details:
Event name
Description
Date and time
Location
Store event data in the database.
Provide an interface to view, edit, and delete events.
Password Security:
Use PHPs passwordhash function to hash passwords before
storing them.
Use PHPs passwordverify function to verify passwords
during login
Session Management:
Implement session handling to keep users logged in across
different pages.
Include a logout mechanism to end the session.
Technical Requirements:
PHP:
Use classes and objects to structure the registration, login event
management, and session management functionalities.
Create a class for database interactions using PDO PHP Data
Objects to handle MySQL queries.
MySQL:
Design a database with tables to store user information and
events eg users and events tables
Ensure proper relationships between tables eg userid in
events table to link events to users
FrontEnd:
Create simple and userfriendly HTML forms for registration,
login and event management.
Use basic CSS for styling optional
Security:
Implement input validation to prevent SQL injection and XSS
attacks.
Use HTTPS to secure data transmission if possible;
Code Structure:
Classes and Methods:
Database: Class to handle database connection and queries.
Methods: connect query execute etc.
User: Class to handle userrelated operations.
Methods: register login logout isLoggedIn
etc.
Event: Class to handle eventrelated operations.
Methods: create read update delete etc.
Session: Class to manage sessions.
Methods: start destroy get set etc.
File Organization:
index.php: Home page.
register.php: Registration form and handling.
loginphp: Login form and handling.
logoutphp: Logout handling.
events.php: Interface to create, view, edit, and delete events.
config.php: Configuration file for database connection.
classes: Directory for class files eg Database.php
User.php Event.php Session.php
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started