Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

php ajax crud with file upload, checkbox and pagination

NotificationsYou must be signed in to change notification settings

reyven90/crud-php-ajax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple CRUD Application for PHP AJAX with the following functionality .

  • Create, Update, Delete
  • Pagination
  • File upload
  • multiple delete with checkbox

Folder Structure

    ├── assets/          ├── action.js -- your action js          ├── custom.css -- your custom css          ├── jquery-3.1.1.min -- jquery library    ├── config/ -- your db connection     ├── template/           ├── header.php          ├── content.php          ├── foorter.php    ├── upload/ -- your stoaragefor images    ├── view / -- your pages     ├── index.php  -- your simple route logic

SQL

Create database and copy paste SQL Code below.

-- phpMyAdmin SQL Dump-- version 4.7.7-- https://www.phpmyadmin.net/---- Host: 127.0.0.1-- Generation Time: Mar 19, 2018 at 11:35 AM-- Server version: 10.1.30-MariaDB-- PHP Version: 7.2.2SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";SET AUTOCOMMIT=0;START TRANSACTION;SET time_zone="+00:00";/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT*/;/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS*/;/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION*/;/*!40101 SET NAMES utf8mb4*/;---- Database: `crud_review_2018`---- ------------------------------------------------------------ Table structure for table `employee`--CREATETABLE `employee` (`emp_id`int(11)NOT NULL,`firstname`varchar(200)NOT NULL,`lastname`varchar(200)NOT NULL,`address`varchar(200)NOT NULL,`image_name`varchar(100)NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=latin1;---- Dumping data for table `employee`--INSERT INTO`employee` (`emp_id`,`firstname`,`lastname`,`address`,`image_name`)VALUES(32,'johnysd','bravo','atlanta','Penguins.jpg'),(37,'john','tumulak','bankal','Chrysanthemum.jpg');---- Indexes for dumped tables------ Indexes for table `employee`--ALTERTABLE`employee`  ADDPRIMARY KEY (`emp_id`);---- AUTO_INCREMENT for dumped tables------ AUTO_INCREMENT for table `employee`--ALTERTABLE`employee`  MODIFY`emp_id`int(11)NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;COMMIT;/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT*/;/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS*/;/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION*/;

db.php

Create database connection

<?phpsession_start()?><?php$ServerName ="localhost";$Username="root";$Password="";$DbName="crud_review_2018";$db =null;try {$db =newPDO("mysql:host=$ServerName;dbname=$DbName",$Username,$Password);$db->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);}catch (PDOException$e) {echo"Connection Failed:" .$e->getMessage();die();}?><?phprequire'functions.php'?>

just download to checkout the full detailshttps://github.com/reyven90/php-ajax-login

more question just pm me on facebookhttps://www.facebook.com/jay.romantiko

thank you for following Goodbless :-)

About

php ajax crud with file upload, checkbox and pagination

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp