Skip to content

chhengz/php_crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP CRUD

Requirement

  • XAMPP Control Panel v3.3.0

Install + Setup

  • Clone Project: git clone https://github.com/chhengz/php_crud.git
  • Create new Database: php_crud or Drag Drop php_crud.sql into your phpMyAdmin, It's will be automatically created new Database for you.
  • (Optional) Import SQL File php_crud.sql into localhost/phpmyadmin/index.php?route=/database/import&db=php_crud

ScreenShoot

  • Home Page home page

  • Add New product add-new-product

  • Edit/Update product edit-product

  • Delete product (Alert Confirmation) delete-product

Sample Database Connection

<?php
    $servername = "localhost";
    $username = "root";
    $password = "";
    $dbname = "php_crud";
    
    // Create connection
    $conn = new mysqli($servername, $username, $password, $dbname);
    
    // Check connection
    if ($conn->connect_error) {
        die("❌ Connection failed: " . $conn->connect_error);
    }
    
    // message to check if the connection is successful
    echo "✅ Connected" . "<br/>";
?>

About

sample php CRUD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors