A simple PHP-based Calculator Project with user authentication (Login, Signup, Logout) and a modern calculator UI built using HTML, CSS, and JavaScript.
This project is perfect for learning PHP sessions, authentication, and MySQL integration.
- ๐ User Registration (Sign Up)
- ๐ User Login & Logout
- ๐ Session-based Authentication
- ๐ฉ Smart Calculator (Add, Subtract, Multiply, Divide, Decimal support)
- ๐จ Beautiful UI with CSS styling
- โก Fast JavaScript-based calculator logic
php-calculator/ โ โโโ db.php # Database connection file โโโ index.php # Login page โโโ register.php # Signup page โโโ logout.php # Logout page โโโ calculator.php # Calculator (accessible only after login) โโโ calculator_db.sql # SQL file to create database & users table โโโ style.css # Stylesheet for UI โโโ script.js # Calculator JavaScript logic
๐ ๏ธ Simple Steps to Run
1.Start XAMPP โ turn on Apache + MySQL.
2.Copy project folder โ put it inside:
3.C:/xampp/htdocs/
4.Create Database
- Open http://localhost/phpmyadmin
- Create a database โ name it calculator_db.
- Import the file calculator_db.sql (from your project folder).
5.Run in Browser
- http://localhost/php-calculator-auth(Project Folder Name)