text: -- phpMyAdmin SQL Dump
  -- version 5.0.2
  -- https://www.phpmyadmin.net/
  ---- Mitra Vafaeinezhad
  
  -- Host: 127.0.0.1
  -- Generation Time: Jun 18, 2020 at 11:51 AM
  -- Server version: 10.4.11-MariaDB
  -- PHP Version: 7.4.6
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  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: `bloodbank`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `advertisement`
  --
  
  CREATE TABLE `advertisement` (
    `adv_id` int(100) NOT NULL,
    `camp_title` varchar(100) NOT NULL,
    `org_by` varchar(100) NOT NULL,
    `pic` varchar(700) NOT NULL,
    `detail` varchar(900) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `advertisement`
  --
  
  INSERT INTO `advertisement` (`adv_id`, `camp_title`, `org_by`, `pic`, `detail`) VALUES
  (4, 'My Collage', 'Blood bank', '2.jpg', 'One who donate get certificate by REC\r\nThat can help you also to gets blood.');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `bloodgroup`
  --
  
  CREATE TABLE `bloodgroup` (
    `bg_id` int(100) NOT NULL,
    `bg_name` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `bloodgroup`
  --
  
  INSERT INTO `bloodgroup` (`bg_id`, `bg_name`) VALUES
  (13, 'o+'),
  (14, 'o-'),
  (15, 'AB+'),
  (16, 'AB-'),
  (17, 'A+'),
  (18, 'A-'),
  (19, 'B+'),
  (20, 'B-');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `camp`
  --
  
  CREATE TABLE `camp` (
    `camp_id` int(100) NOT NULL,
    `camp_title` varchar(500) NOT NULL,
    `organised_by` varchar(500) NOT NULL,
    `state` int(100) NOT NULL,
    `city` int(100) NOT NULL,
    `pic` varchar(900) NOT NULL,
    `detail` varchar(1000) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `camp`
  --
  
  INSERT INTO `camp` (`camp_id`, `camp_title`, `organised_by`, `state`, `city`, `pic`, `detail`) VALUES
  (1, 'KLCollage', 'KLCounsil', 2, 4, 'blood_donation_camp.jpg', 'A Blood Donation Camp at KL UM Collage organized ');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `city`
  --
  
  CREATE TABLE `city` (
    `city_id` int(100) NOT NULL,
    `city_name` varchar(100) NOT NULL,
    `pin_code` varchar(100) NOT NULL,
    `district` varchar(100) NOT NULL,
    `state` int(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `city`
  --
  
  INSERT INTO `city` (`city_id`, `city_name`, `pin_code`, `district`, `state`) VALUES
  (1, 'Tehran', '144401', 'Tehran', 1),
  (4, 'Kuala lumpur', '59200', 'Kuala lumpur', 2),
  (7, 'Penang', '144001', 'Penang', 2);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `contacts`
  --
  
  CREATE TABLE `contacts` (
    `row_id` int(100) NOT NULL,
    `name` varchar(100) NOT NULL,
    `email` varchar(100) NOT NULL,
    `mobile` varchar(100) NOT NULL,
    `subj` varchar(700) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `contacts`
  --
  
  INSERT INTO `contacts` (`row_id`, `name`, `email`, `mobile`, `subj`) VALUES
  (1, 'Mitra', 'mitrav80@gmail.com', '1234555', 'save life');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `donarregistration`
  --
  
  CREATE TABLE `donarregistration` (
    `donar_id` int(100) NOT NULL,
    `name` varchar(100) NOT NULL,
    `gender` varchar(100) NOT NULL,
    `age` varchar(100) NOT NULL,
    `mobile` varchar(100) NOT NULL,
    `b_id` int(100) NOT NULL,
    `email` varchar(100) NOT NULL,
    `pwd` int(100) NOT NULL,
    `pic` varchar(1000) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `donation`
  --
  
  CREATE TABLE `donation` (
    `donation_id` int(100) NOT NULL,
    `camp_id` int(100) NOT NULL,
    `ddate` datetime NOT NULL,
    `units` int(100) NOT NULL,
    `detail` varchar(800) NOT NULL,
    `email` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `donation`
  --
  
  INSERT INTO `donation` (`donation_id`, `camp_id`, `ddate`, `units`, `detail`, `email`) VALUES
  (34, 9, '2009-06-05 00:00:00', 10, 'give blood', 'mitrav80@gmail.com'),
  (35, 1, '2012-09-13 00:00:00', 22, 'save life', 'pouya1364@gmail.com'),
  (36, 9, '0000-00-00 00:00:00', 444, 'kjj', 'dummy@dummyemail.com');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `gallary`
  --
  
  CREATE TABLE `gallary` (
    `camp_id` int(100) NOT NULL,
    `pic_id` int(100) NOT NULL,
    `title` varchar(400) NOT NULL,
    `pic` varchar(800) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `gallary`
  --
  
  INSERT INTO `gallary` (`camp_id`, `pic_id`, `title`, `pic`) VALUES
  (9, 15, 'pic 1', 'p48_2.jpg'),
  (9, 16, 'pic 2', 'p11 (1).jpg'),
  (9, 17, 'pic 3', 'p141.jpg'),
  (9, 18, 'pic 5', 'p177_2.jpg'),
  (9, 19, 'pic 6', 'p279.jpg'),
  (8, 20, 'pic 8', 'p246.jpg'),
  (9, 21, 'pic 9', 'p82.jpg'),
  (7, 22, 'pic 2', 'p82.jpg'),
  (7, 23, 'pic 3', 'p93.jpg'),
  (7, 24, 'pic 6', 'p148.jpg'),
  (7, 25, 'pic 7', 'pamrik@ymail.com1 (2).jpg'),
  (7, 26, 'pic 8', 'slider4.jpg'),
  (7, 27, 'pic 9', 'slider7.jpg'),
  (1, 28, 'pic 2', 'slider8.jpg'),
  (1, 29, 'pic 3', 'slider3.jpg'),
  (1, 30, 'pic 4', 'donation.jpg'),
  (1, 31, 'pic 3', 'Blood-Donation2.jpg'),
  (1, 32, 'pic 4', 'blood-donation-.jpg'),
  (1, 33, 'pic 6', 'blood-donation.jpg'),
  (8, 34, 'pic 1', 'resizedBlood donation (1).jpg'),
  (8, 35, 'pic 2', 'Blood-donation-camp.jpg'),
  (8, 36, 'pic 4', '3.jpg'),
  (8, 37, 'pic 5', '4.jpg'),
  (8, 38, 'pic 7', '5.jpg');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `news`
  --
  
  CREATE TABLE `news` (
    `news_id` int(100) NOT NULL,
    `title` varchar(100) NOT NULL,
    `detail` varchar(900) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `news`
  --
  
  INSERT INTO `news` (`news_id`, `title`, `detail`) VALUES
  (1, 'blood donate', 'give blood give bloodgive blood'),
  (2, 'blood bank', 'blooooddddd\n\n');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `requestes`
  --
  
  CREATE TABLE `requestes` (
    `req_id` int(100) NOT NULL,
    `name` varchar(100) NOT NULL,
    `gender` varchar(100) NOT NULL,
    `age` varchar(100) NOT NULL,
    `mobile` varchar(100) NOT NULL,
    `email` varchar(100) NOT NULL,
    `bgroup` int(100) NOT NULL,
    `reqdate` datetime NOT NULL,
    `detail` varchar(500) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `requestes`
  --
  
  INSERT INTO `requestes` (`req_id`, `name`, `gender`, `age`, `mobile`, `email`, `bgroup`, `reqdate`, `detail`) VALUES
  (7, 'balwant singh', 'male', '22', '8427420298', 'balwant11@gmail.com', 19, '2015-01-15 00:00:00', 'save life'),
  (8, 'japleen', 'female', '22', '9216291294', 'jsimran08@gmail.com', 13, '2014-01-12 00:00:00', 'save life'),
  (9, 'Naresh', 'female', '21', '8427420291', 'nareshheer719@gmail.com', 17, '2015-01-18 00:00:00', 'save life'),
  (10, 'Taran', 'male', '55', '7589325050', 'taran@ymail.com', 14, '2012-01-29 00:00:00', '');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `state`
  --
  
  CREATE TABLE `state` (
    `state_id` int(100) NOT NULL,
    `state_name` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `state`
  --
  
  INSERT INTO `state` (`state_id`, `state_name`) VALUES
  (1, 'Tehran'),
  (2, 'KL');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `username` varchar(100) NOT NULL,
    `pwd` varchar(100) NOT NULL,
    `typeofuser` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `users`
  --
  
  INSERT INTO `users` (`username`, `pwd`, `typeofuser`) VALUES
  ('mitra', 'mitra', 'Admin');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `advertisement`
  --
  ALTER TABLE `advertisement`
    ADD PRIMARY KEY (`adv_id`);
  
  --
  -- Indexes for table `bloodgroup`
  --
  ALTER TABLE `bloodgroup`
    ADD PRIMARY KEY (`bg_id`);
  
  --
  -- Indexes for table `camp`
  --
  ALTER TABLE `camp`
    ADD PRIMARY KEY (`camp_id`);
  
  --
  -- Indexes for table `city`
  --
  ALTER TABLE `city`
    ADD PRIMARY KEY (`city_id`);
  
  --
  -- Indexes for table `contacts`
  --
  ALTER TABLE `contacts`
    ADD PRIMARY KEY (`row_id`);
  
  --
  -- Indexes for table `donarregistration`
  --
  ALTER TABLE `donarregistration`
    ADD PRIMARY KEY (`donar_id`);
  
  --
  -- Indexes for table `donation`
  --
  ALTER TABLE `donation`
    ADD PRIMARY KEY (`donation_id`);
  
  --
  -- Indexes for table `gallary`
  --
  ALTER TABLE `gallary`
    ADD PRIMARY KEY (`pic_id`);
  
  --
  -- Indexes for table `news`
  --
  ALTER TABLE `news`
    ADD PRIMARY KEY (`news_id`);
  
  --
  -- Indexes for table `requestes`
  --
  ALTER TABLE `requestes`
    ADD PRIMARY KEY (`req_id`);
  
  --
  -- Indexes for table `state`
  --
  ALTER TABLE `state`
    ADD PRIMARY KEY (`state_id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `advertisement`
  --
  ALTER TABLE `advertisement`
    MODIFY `adv_id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- AUTO_INCREMENT for table `bloodgroup`
  --
  ALTER TABLE `bloodgroup`
    MODIFY `bg_id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
  
  --
  -- AUTO_INCREMENT for table `camp`
  --
  ALTER TABLE `camp`
    MODIFY `camp_id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
  
  --
  -- AUTO_INCREMENT for table `city`
  --
  ALTER TABLE `city`
    MODIFY `city_id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
  
  --
  -- AUTO_INCREMENT for table `contacts`
  --
  ALTER TABLE `contacts`
    MODIFY `row_id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
  
  --
  -- AUTO_INCREMENT for table `donarregistration`
  --
  ALTER TABLE `donarregistration`
    MODIFY `donar_id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
  
  --
  -- AUTO_INCREMENT for table `donation`
  --
  ALTER TABLE `donation`
    MODIFY `donation_id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;
  
  --
  -- AUTO_INCREMENT for table `gallary`
  --
  ALTER TABLE `gallary`
    MODIFY `pic_id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;
  
  --
  -- AUTO_INCREMENT for table `news`
  --
  ALTER TABLE `news`
    MODIFY `news_id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `requestes`
  --
  ALTER TABLE `requestes`
    MODIFY `req_id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
  
  --
  -- AUTO_INCREMENT for table `state`
  --
  ALTER TABLE `state`
    MODIFY `state_id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  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 */;
  