Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amankumarsinhagithub/crud-app-using-php-mysql
This repository showcases a simple CRUD (Create, Read, Update, Delete) application implemented in PHP and MySQL.
https://github.com/amankumarsinhagithub/crud-app-using-php-mysql
backend bootstrap5 crud-application database html-css-javascript mysql php
Last synced: 3 months ago
JSON representation
This repository showcases a simple CRUD (Create, Read, Update, Delete) application implemented in PHP and MySQL.
- Host: GitHub
- URL: https://github.com/amankumarsinhagithub/crud-app-using-php-mysql
- Owner: AmanKumarSinhaGitHub
- Created: 2024-01-28T14:46:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-05T17:46:57.000Z (about 1 year ago)
- Last Synced: 2024-10-13T00:18:36.569Z (4 months ago)
- Topics: backend, bootstrap5, crud-application, database, html-css-javascript, mysql, php
- Language: PHP
- Homepage: https://php-mysql-crud-app.000webhostapp.com
- Size: 240 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CRUD-App-using-PHP-MySQL
### [Live Preview - Click to Open](https://php-mysql-crud-app.000webhostapp.com)
![Preview](https://github.com/AmanKumarSinhaGitHub/CRUD-App-using-PHP-MySQL/assets/65329366/918d0190-eb7a-49f2-98ac-fd8add2c5f01)
![Preview](https://github.com/AmanKumarSinhaGitHub/CRUD-App-using-PHP-MySQL/assets/65329366/9eb94df4-cd39-41af-95b5-5d3a54232230)
Before you begin, make sure you have the following installed:
- PHP
- MySQL
- Web server (e.g., Apache)
- A web browser## Setup Database
1. **Create a Database:**
- Open your MySQL database management tool (e.g., phpMyAdmin).
- Create a new database named `crud`.
- If you are using phpMyAdmin, follow these steps:
- Click on the "Databases" tab.
- Enter `crud` in the "Database name" field.
- Click the "Create" button.2. **Create a Table:**
- Inside the `crud` database, create a table named `userdetails` using the following SQL query:
```sql
CREATE TABLE `userdetails` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`mobile` varchar(15) NOT NULL,
`password` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
);
```3. **Using a MySQL Database Management Tool (e.g., phpMyAdmin):**
- Open phpMyAdmin or any other MySQL database management tool you are using.
- Select the database where you want to create the table (in this case, `crud`).
- Navigate to the "SQL" tab or equivalent.
- Copy and paste the provided SQL query into the input box.
- Click the "Go" or "Execute" button to run the query.
Example:
```sql
CREATE TABLE `userdetails` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`mobile` varchar(15) NOT NULL,
`password` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
);
```This will create the `userdetails` table with the specified structure in the `crud` database.
# Data Insertion
```php
close();
?>
CRUD App using PHP MySQL
html,
body {
background-color: gainsboro;
}
CRUD OPERATIONS
Name
Email address
Mobile Number
Password
Submit
```
#### Checkout More Branches for Fetching Data, Editing Data, and Deleting Data from Database.
## Insert Data
```bash
git checkout main
```## Fetch Data
```bash
git checkout read-data
```## Delete Data
```bash
git checkout delete-data
```## Update Data
```bash
git checkout update-data
```## Crud Operations with Images
```bash
git checkout crud-with-images
```# More
Upload Img in DB and Display it
[Repo Link](https://github.com/AmanKumarSinhaGitHub/Image-Upload-and-Display-using-PHP-MySQL)