-- phpMyAdmin SQL Dump
-- version 4.0.4.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Sep 28, 2014 at 06:11 PM
-- Server version: 5.6.11
-- PHP Version: 5.5.1

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 utf8 */;

--
-- Database: `shopdb`
--
CREATE DATABASE IF NOT EXISTS `shopdb` DEFAULT CHARACTER SET utf8 COLLATE utf8_persian_ci;
USE `shopdb`;

-- --------------------------------------------------------

--
-- Table structure for table `tbladminusers`
--

CREATE TABLE IF NOT EXISTS `tbladminusers` (
  `userid` varchar(100) COLLATE utf8_persian_ci NOT NULL,
  `pass` varchar(100) COLLATE utf8_persian_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci;

--
-- Dumping data for table `tbladminusers`
--

INSERT INTO `tbladminusers` (`userid`, `pass`) VALUES
('admin', 'admin');

-- --------------------------------------------------------

--
-- Table structure for table `tblbasket`
--

CREATE TABLE IF NOT EXISTS `tblbasket` (
  `userid` varchar(30) COLLATE utf8_persian_ci NOT NULL,
  `productid` int(2) NOT NULL,
  `number` int(2) NOT NULL DEFAULT '1',
  `price` decimal(18,0) NOT NULL,
  `flag` int(2) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci;

--
-- Dumping data for table `tblbasket`
--

INSERT INTO `tblbasket` (`userid`, `productid`, `number`, `price`, `flag`) VALUES
('elham', 24, 2, '0', 48),
('elham', 24, 2, '0', 49),
('elham', 25, 2, '0', 50),
('elham', 24, 1, '0', 50),
('elham', 23, 2, '0', 51),
('elham', 25, 1, '0', 51),
('elham', 26, 1, '0', 52),
('elham', 27, 1, '0', 52),
('elham', 39, 10, '0', 53),
('elham', 37, 1, '0', 54),
('elham', 39, 10, '0', 54),
('elham', 39, 8, '0', 56),
('elham', 39, 6, '0', 58),
('elham', 38, 1, '0', 60),
('elham', 39, 4, '0', 60),
('elham', 40, 1, '0', 60),
('elham', 39, 3, '0', 62),
('elham', 37, 1, '0', 63);

-- --------------------------------------------------------

--
-- Table structure for table `tblcat`
--

CREATE TABLE IF NOT EXISTS `tblcat` (
  `catid` int(2) NOT NULL AUTO_INCREMENT,
  `name` varchar(1000) COLLATE utf8_persian_ci NOT NULL,
  PRIMARY KEY (`catid`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci AUTO_INCREMENT=35 ;

--
-- Dumping data for table `tblcat`
--

INSERT INTO `tblcat` (`catid`, `name`) VALUES
(27, 'Ø¬Ø²ÙˆØ§Øª'),
(28, 'ÙÛŒÙ„Ù… Ø¢Ù…ÙˆØ²Ø´ÛŒ'),
(29, 'Ú©ØªØ§Ø¨ '),
(30, 'Ø¨Ø§Ø²ÛŒ'),
(31, 'Ù†Ø±Ù… Ø§ÙØ²Ø§Ø±'),
(32, 'Ø±Ù…Ø² Ø¢Ù†ØªÛŒ ÙˆÛŒØ±ÙˆØ³'),
(33, 'Ù‚Ø§Ù„Ø¨ Ù‡Ø§ÛŒ ØªØ¬Ø§Ø±ÛŒ'),
(34, 'Ù¾Ø±ÙˆÚ˜Ù‡');

-- --------------------------------------------------------

--
-- Table structure for table `tblorder`
--

CREATE TABLE IF NOT EXISTS `tblorder` (
  `orderid` int(2) NOT NULL AUTO_INCREMENT,
  `userid` varchar(30) COLLATE utf8_persian_ci NOT NULL,
  `date` varchar(100) COLLATE utf8_persian_ci DEFAULT NULL,
  `hour` varchar(100) COLLATE utf8_persian_ci DEFAULT NULL,
  `address` varchar(100) COLLATE utf8_persian_ci DEFAULT NULL,
  `postcode` varchar(100) COLLATE utf8_persian_ci DEFAULT NULL,
  `tell` varchar(100) COLLATE utf8_persian_ci DEFAULT NULL,
  `comment` varchar(1000) COLLATE utf8_persian_ci DEFAULT NULL,
  `miladidate` varchar(100) COLLATE utf8_persian_ci NOT NULL,
  `email` varchar(100) COLLATE utf8_persian_ci DEFAULT NULL,
  `orderType` varchar(100) COLLATE utf8_persian_ci DEFAULT NULL,
  `flag` int(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`orderid`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci AUTO_INCREMENT=64 ;

--
-- Dumping data for table `tblorder`
--

INSERT INTO `tblorder` (`orderid`, `userid`, `date`, `hour`, `address`, `postcode`, `tell`, `comment`, `miladidate`, `email`, `orderType`, `flag`) VALUES
(58, 'elham', 'fdgtbd', NULL, NULL, NULL, '12345', NULL, '', NULL, NULL, 0),
(59, 'elham', 'fdgtbd', NULL, NULL, NULL, '12345', NULL, '', NULL, NULL, 1),
(60, 'elham', 'fdgtbd', NULL, NULL, NULL, '12345', NULL, '', NULL, NULL, 1),
(61, 'elham', 'fdgtbd', NULL, NULL, NULL, '12345', NULL, '', NULL, NULL, 1),
(62, 'elham', 'fdgtbd', NULL, NULL, NULL, '12345', NULL, '', NULL, NULL, 0),
(63, 'elham', 'fdgtbd', NULL, NULL, NULL, '12345', NULL, '', NULL, NULL, 0);

-- --------------------------------------------------------

--
-- Table structure for table `tblproducts`
--

CREATE TABLE IF NOT EXISTS `tblproducts` (
  `productid` int(3) NOT NULL AUTO_INCREMENT,
  `catid` int(2) NOT NULL,
  `name` varchar(1000) COLLATE utf8_persian_ci NOT NULL,
  `price` decimal(18,0) NOT NULL,
  `pic` char(100) COLLATE utf8_persian_ci DEFAULT NULL,
  `comment` varchar(10000) COLLATE utf8_persian_ci DEFAULT NULL,
  `score` int(2) NOT NULL DEFAULT '0',
  `date` varchar(100) COLLATE utf8_persian_ci DEFAULT NULL,
  `link` varchar(200) COLLATE utf8_persian_ci DEFAULT NULL,
  PRIMARY KEY (`productid`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci AUTO_INCREMENT=54 ;

--
-- Dumping data for table `tblproducts`
--

INSERT INTO `tblproducts` (`productid`, `catid`, `name`, `price`, `pic`, `comment`, `score`, `date`, `link`) VALUES
(43, 33, 'Ù‚Ø§Ù„Ø¨ ØªØ¬Ø§Ø±ÛŒ Ù…Ø­Ú©', '2000000', '23596mahak.jpg', '', 0, '1393/7/6', ''),
(44, 33, 'Ù‚Ø§Ù„Ø¨ ØªØ¬Ø§Ø±ÛŒ Ù…ÙˆØ²ÛŒÚ©Ø³ØªØ§Ù†', '2500000', '22261musicestan.jpg', '<p>Ø§ÛŒÙ† Ù‚Ø§Ù„Ø¨ Ø¨Ø±Ø§ÛŒ Ø³Ø§ÛŒØª Ù…ÙˆØ²ÛŒÚ© Ø·Ø±Ø§Ø­ÛŒ Ø´Ø¯Ù‡ Ø§Ø³Øª</p>\r\n', 1, '1393/7/6', ''),
(45, 34, 'Ø¨Ø±Ù†Ø§Ù…Ù‡ ØªØ´Ø®ÛŒØµ Ø§Ø«Ø± Ø§Ù†Ú¯Ø´Øª ', '1200000', '23690526_matlab_fingerprintrecognition 2.jpg', '<p>Ø§ÛŒÙ† Ø¨Ø±Ù†Ø§Ù…Ù‡ Ø¨Ø§ Ø²Ø¨Ø§Ù† Ø¨Ø±Ù†Ø§Ù…Ù‡ Ù†ÙˆÛŒØ³ÛŒ Ù…ØªÙ„Ø¨ Ù†ÙˆØ´ØªÙ‡ Ø´Ø¯Ù‡ Ø§Ø³Øª.</p>\r\n', 4, '1393/7/6', ''),
(47, 30, 'Ø¨Ø§Ø²ÛŒ Ø¯Ø®ØªØ±Ø§Ù†Ù‡ Ø¨Ø§Ø±Ø¨ÛŒ', '100000', '3864BARBI-GAMES.jpg', '', 0, '1393/7/6', ''),
(48, 31, 'Ù†Ø±Ù… Ø§ÙØ²Ø§Ø± ÙØªÙˆØ´Ø§Ù¾', '60000', '28017a.jpg', '', 0, '1393/7/6', ''),
(49, 30, 'Ø¨Ø§Ø²ÛŒ Ø¨Ø§Ø¨ Ø§Ø³ÙÙ†Ø¬ÛŒ', '60000', '14166d.jpg', '', 0, '1393/7/6', ''),
(50, 29, 'Ú©ØªØ§Ø¨ Ø±ÛŒØ§Ø¶ÛŒØ§Øª Ù…Ù‡Ù†Ø¯Ø³ÛŒ', '20000', '29655c.jpg', '', 0, '1393/7/6', ''),
(51, 29, 'Ú©ØªØ§Ø¨ Ù…Ù‡Ù†Ø¯Ø³ÛŒ Ø§ÛŒÙ†ØªØ±Ù†Øª', '20000', '1220Mohandesi_Internet_Malkiyan.png', '<p>Ø§ÛŒÙ† Ú©ØªØ§Ø¨ ØªØ§Ù„ÛŒÙ Ù…Ù‡Ù†Ø¯Ø³ Ø§Ø­Ø³Ø§Ù† Ù…Ù„Ú©ÛŒØ§Ù† Ù…ÛŒ Ø¨Ø§Ø´Ø¯.</p>\r\n\r\n<p>&nbsp;</p>\r\n', 0, '1393/7/6', ''),
(52, 34, 'Ø¨Ø±Ù†Ø§Ù…Ù‡ Ø­Ø³Ø§Ø¨Ø¯Ø§Ø±ÛŒ', '1000000', '28589Project-Accounting.jpg', '<p>Ø§ÛŒÙ† Ù¾Ø±ÙˆÚ˜Ù‡ Ø¨Ù‡ Ø²Ø¨Ø§Ù† Ø³ÛŒ Ø´Ø§Ø±Ù¾ Ù†ÙˆØ´ØªÙ‡ Ø´Ø¯Ù‡ Ø§Ø³Øª .</p>\r\n\r\n<p>&nbsp;</p>\r\n', 3, '1393/7/6', ''),
(53, 32, 'Ø±Ù…Ø² Ø¢Ù†ØªÛŒ ÙˆÛŒØ±ÙˆØ³ Ù†ÙˆØ¯ 32', '10000', '29410b.jpg', '', 0, '1393/7/6', '');

-- --------------------------------------------------------

--
-- Table structure for table `tblusers`
--

CREATE TABLE IF NOT EXISTS `tblusers` (
  `userid` varchar(20) COLLATE utf8_persian_ci NOT NULL,
  `fname` varchar(100) COLLATE utf8_persian_ci DEFAULT NULL,
  `lname` varchar(100) COLLATE utf8_persian_ci DEFAULT NULL,
  `tell` varchar(100) COLLATE utf8_persian_ci DEFAULT NULL,
  `address` varchar(1000) COLLATE utf8_persian_ci DEFAULT NULL,
  `pass` varchar(20) COLLATE utf8_persian_ci NOT NULL,
  `lastlogin` varchar(100) COLLATE utf8_persian_ci DEFAULT NULL,
  PRIMARY KEY (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci;

--
-- Dumping data for table `tblusers`
--

INSERT INTO `tblusers` (`userid`, `fname`, `lname`, `tell`, `address`, `pass`, `lastlogin`) VALUES
('elham', 'eli', 'imani', '12345', 'golestan', '1234', '1393/7/6'),
('iman', 'elham', 'imani', '2313488', 'birjand', '12345', '1393/7/3'),
('msadegh', 'mohammad sadegh', 'mortezaei', '2313388', 'birjand', '1234', '1393/6/9');

/*!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 */;
