=========================================================================
|====================== index.php ======================================|
=========================================================================
CRUD
CRUD APPLICATION
=========================================================================
|====================== connection.php =================================|
=========================================================================
connect_error){
die("Eoor to connect".$conn->connect_error);
}
?>
=========================================================================
|======================== dbcreate.php =================================|
=========================================================================
query($sql)===False){
echo "Error to insert";
}echo "";
echo "";
?>
=========================================================================
|======================== dbshow.php ===================================|
=========================================================================
query($sql);
if($result->num_rows>0){
echo "
";
echo "
SR |
NAME |
CLASS |
ROLL |
UPLOAD |
DELETE |
";
while($row=$result->fetch_assoc()){
echo "".$row['sr']." | ";
echo "".$row['name']." | ";
echo "".$row['class']." | ";
echo "".$row['roll']." | ";
echo ""."Edit"." | ";
echo ""."Delete"." |
";
}
}
echo "
";
?>
=========================================================================
|======================== dbdelete.php =================================|
=========================================================================
query($sql)===True){
echo "";
echo "";
}
?>
=========================================================================
|======================== Update.php =================================|
=========================================================================
query($sql);
$row=$result->fetch_assoc();
?>
UPDATE PAGE
=========================================================================
|========================== dbupdate.php ===============================|
=========================================================================
query($sql)===True){
echo "";
echo "";
}
?>
=========================================================================
|=======================================================================|
============================[DataBasee Query]============================
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 17, 2017 at 03:41 AM
-- Server version: 10.1.22-MariaDB
-- PHP Version: 7.1.4
SET 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: `php`
--
-- --------------------------------------------------------
--
-- Table structure for table `reg`
--
CREATE TABLE `reg` (
`sr` int(5) NOT NULL,
`name` varchar(50) NOT NULL,
`class` varchar(50) NOT NULL,
`roll` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `reg`
--
INSERT INTO `reg` (`sr`, `name`, `class`, `roll`) VALUES
(1, 'ALOK Nandan', 'MBA', 152161),
(2, 'Rahul', 'BCA', 1216),
(3, 'Mohan', 'MCAA', 2345),
(4, 'Ranjan singh', 'BBM', 2224);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `reg`
--
ALTER TABLE `reg`
ADD PRIMARY KEY (`sr`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `reg`
--
ALTER TABLE `reg`
MODIFY `sr` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;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 */;