Skip to content

rucha184/php-calculator-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

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

Repository files navigation

๐Ÿงฎ Smart PHP Calculator with Login & Signup

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.


โœจ Features

  • ๐Ÿ”‘ 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

๐Ÿ“‚ Project Structure

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

About

๐Ÿ” A simple calculator web app built with PHP, MySQL, and Bootstrap, featuring user authentication (Login, Signup, Logout) and secure password hashing.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages