Skip to content

Moosadeveloper/crud-practice-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

CRUD Form Project โ€“ PHP & MySQL

This project is a simple PHP-based CRUD form that allows users to submit their information (name, fatherโ€™s name, email, number, and CNIC).
All data is stored in a MySQL database.


๐Ÿš€ Features

  • Add user details using a Bootstrap form
  • Insert data into MySQL database
  • Shows โ€œsuccessfulโ€ message after insertion
  • Uses mysqli for database connection
  • Correct handling of phone number & CNIC by using VARCHAR datatype

๐Ÿ›  Technologies Used

  • PHP
  • MySQL
  • Bootstrap 5
  • HTML

๐Ÿ“‚ Project Folder Structure

project-folder/ โ”‚โ”€โ”€ connect.php โ”‚โ”€โ”€ index.php โ”‚โ”€โ”€ README.md โ””โ”€โ”€ (other files)


โš™๏ธ Database Setup

  1. Open phpMyAdmin
  2. Create a database (example: crud_db)
  3. Create table using this SQL:
CREATE TABLE crudee (
  id INT AUTO_INCREMENT PRIMARY KEY,
  name VARCHAR(100),
  fname VARCHAR(100),
  email VARCHAR(100),
  number VARCHAR(20),
  cnic VARCHAR(25)
);



About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages