Giter Club home page Giter Club logo

crud-operation's Introduction

Book Shop CRUD Application

This is a simple CRUD application for a book shop, built using PHP, MySQL, and XAMPP. The application allows you to create, read, update,search and delete book records.

Features

  • Add new book records
  • View existing book records
  • search book records
  • Update book records
  • Delete book records

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed XAMPP.
  • You have a basic understanding of PHP and MySQL.

Installation

  1. Clone the Repository

    git clone https://github.com/jadavtanvi/CRUD-Operation.git
    
  2. Start XAMPP

Open XAMPP and start the Apache and MySQL modules.

  1. Create the Database Open phpMyAdmin by visiting http://localhost/phpmyadmin/ in your web browser.

Configuration

  1. Database Connection

Open the config.php file and update the database connection details: ``` // <?php $servername = "localhost"; $username = "root"; // Default XAMPP MySQL username $password = ""; // Default XAMPP MySQL password $dbname = "program1";

  // Create connection
  $conn = new mysqli($servername, $username, $password, $dbname);
  
  // Check connection
  if ($conn->connect_error) {
      die("Connection failed: " . $conn->connect_error);
  }
  ?>
  ```

Usage

  1. Perform CRUD Operations

To add a new book, fill out the form on the homepage and click "Add Book". To view all books, navigate to the "Books List" page. To Search a book, click the "Search" button. To update a book, click the "Update" button next to the book you want to update, make your changes, and click "Update". To delete a book, click the "Delete" button next to the book you want to delete.

  1. Database Structure The database contains a single table named books with the following structure:

id (INT) - Primary Key, Auto Increment name (VARCHAR) - The title of the book edition (INT) - The author of the book price (DECIMAL) - The price of the book

By linking directly to the download page, you ensure that users can easily find and download the software required to run your application.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.