• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Technical_manual
 

Technical_manual

on

  • 1,089 views

 

Statistics

Views

Total Views
1,089
Views on SlideShare
1,088
Embed Views
1

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 1

http://www.slideshare.net 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Technical_manual Technical_manual Document Transcript

    • Clemson Classifieds – Real Time Online Classifieds for Web Portal TECHNICAL REFERENCE MANUAL Clemson University, School of Computing Srikanth Vanama                      
    •   Table  of  Contents     1.  INTRODUCTION  ................................................................................................................... 3   2.  SYSTEM  DESIGN ................................................................................................................... 3   3.  DATABASE  DESIGN   .............................................................................................................. 4   Figure  1:  Database  Design .................................................................................................. 5   4.  ER-­‐MODEL............................................................................................................................ 6   Figure  2:  E-­‐R  Model   ........................................................................................................... 6   5.  TABLES  IN  THE  DATABASE   ................................................................................................... 7   6.  DATABASE  SCHEMA ............................................................................................................. 9   Figure  3:  Database  Schema   ............................................................................................... 9   7.  DESCRIPTION  OF  THE  TABLES   ............................................................................................ 10   Users  Table   ...................................................................................................................... 10   ProfileImages  Table   ......................................................................................................... 11   Administrator  Table   ......................................................................................................... 12   Products  Table  ................................................................................................................. 13   ProductImages  Table   ....................................................................................................... 14   Category  Table  ................................................................................................................. 14   Ratings  Table   ................................................................................................................... 15   Comments  Table  .............................................................................................................. 15   Forums  Table   ................................................................................................................... 16   8.  APPENDIX   ......................................................................................................................... 18   Database  Schemas  and  Table  Structures   ........................................................................ 18                       CpSc 662 Clemson Classifieds 2  
    •   1. INTRODUCTION     Clemson  Classifieds  is  a  web  portal,  which  features  online  classifieds  of  the  Clemson   community.   This   web   application   is   used   to   bring   the   buyer   and   seller   closer   by   providing  a  web  based  platform.       2. SYSTEM DESIGN   The  system  design  includes  series  of  steps:       • Requirements  and  analysis     • Application  design  and  database  design.     • Implementation     • Testing  the  system     • Evaluation  and  maintenance       All   the   requirements   were   gathered   systematically,   and   a   thorough   analysis   was   performed   to   design   a   system   to   what   we   now   call   Clemson   Classifieds.     An   extensive   study   of   various   existing   systems   of   similar   usage   provided   us   valuable   information   regarding   building   a   system   from   scratch.   Requirements   and   analysis   phase   is   followed   by  application  design  and  database  design.       A   robust   database   is   built   to   accommodate   all   the   data   entries   into   various   tables.   Finally  the  system  is  tested  in  various  scenarios.  All  these  phases  are  interlinked  with   each   other   and   account   for   clearness   and   completeness   of   the   Clemson   Classifieds   System.           CpSc 662 Clemson Classifieds 3  
    •   3. DATABASE DESIGN   The  Database  Design  involved  a  series  of  steps,  as  follows:     • Planning  and  Analysis     • Conceptual  design  (ER  model)     • Logical  design  (Relational  model)     • Physical  design  (DBMS)     • Implementation     The first and foremost step that of Planning and Analysis, involved a thorough study of demands of the Clemson Classifieds project. Next, for the Conceptual Design, the ER-Model with all its important identified identities was constructed. The conceptual design process includes the design of both, the Data model and the Functional model. The relationship between various entities in the ER- Model are identified with M:N cardinality existing between them. The next step is the Logical Design step, for which the relational model of the database is generated. Next, for the Physical Design, the tables in the database set are created, with appropriate Primary keys and Foreign keys. The major queries used for the implementation of the project are identified and the queries for all the functionalities were written below. The last setup in this process is the Implementation phase where the actual implementation of the entire project is done using PHP, HTML and CSS with the corresponding MySQL Queries.   CpSc 662 Clemson Classifieds 4  
    •   Fig 1: Database Design   CpSc 662 Clemson Classifieds 5  
    •   4. E-R MODEL ER diagram provides the basis for designing the project lifecycle. Various entities are identified during the construction of ER diagram. The relationships between different entities are identified as well. The ER diagram is initially created in the conceptual design phase, but was refined in the 2nd phase in the logical design and is again modified to a very little extent in the next phase (i.e.) in the Physical design after which the final ER-Diagram was completed. Database normalization is performed on the tables to maintain the fifth normal form. Fig. 2: E-R Model   CpSc 662 Clemson Classifieds 6  
    •   5. TABLES IN THE DATABASE Tables are created in accordance with the ER diagram constructed. Data integrity and referential integrity are maintained while designing the database schema. Primary keys and foreign keys are established within and between tables to maintain data integrity and referential integrity respectively. The following tables exist in the database.         Degree  of   Table  No.   Table  Name   Purpose  of  the  Table   Normalization         To  maintain  various  records  of  users  registered   5NF   1                          Users   on  the  website.           Contains  all  the  profile  images  of  various  users   5NF   2   who  have  registered  on  the  website.   ProfileImages         Contains  all  the  administrator  details  which   5NF   3   Administrator   includes  administrator  id,  E-­‐mail  etc.           Contains  the  details  of  various  products  posted   5NF   4   Products   by  the  users  on  the  website.           Contains  all  the  product  images  of  various   5NF   5   products  that  have  been  posted  by  the  users  on   ProductImages   the  website.       Contains  various  categories  and  classify   6     products  into  their  respective  categories.  This     Category   table  also  includes  subcategories.                      5NF       CpSc 662 Clemson Classifieds 7  
    •           7   Ratings   Contains  ratings  of  various  products  posted  by   5NF   the  users.             8   Comments   Contains  comments  posted  on  various  products   5NF   by  the  users.       9   Forums   Contains  all  the  forums  related  contents  created   5NF   on  the  website.     CpSc 662 Clemson Classifieds 8  
    •   6. DATABASE SCHEMA Fig. 3: Database Schema   CpSc 662 Clemson Classifieds 9  
    •   7. DESCRIPTION OF THE TABLES Users Table: +--------------+-----------------------+------+-----+---------+----------- - | Field | Type | Null | Key | Defa- | Extra | ult +--------------+-----------------------+------+-----+---------+----------- - | userid | int(20) | NO | PRI | NULL | auto_increment | | username | varchar(20) | YES | UNI | NULL | | | password | varchar(20) | YES | | NULL | | | title | varchar(10) | YES | | NULL | | | firstname | varchar(50) | YES | | NULL | | | lastname | varchar(50) | YES | | NULL | | | gender | enum('Male','Female') | YES | | NULL | | | dateofbirth | date | YES | | NULL | | | address | varchar(60) | YES | | NULL | | | city | varchar(30) | YES | | NULL | | | state | varchar(30) | YES | | NULL | | | zipcode | varchar(30) | YES | | NULL | | | email | varchar(50) | YES | | NULL | | | phone | varchar(20) | YES | | NULL | | | intcateg | varchar(3000) | YES | | NULL | | | emailalerts | enum('Yes','No') | YES | | NULL | | | smsalerts | enum('Yes','No') | YES | | NULL | | | phonecarrier| varchar(20) | YES | | NULL | | +--------------+-----------------------+------+-----+---------+-----------       CpSc 662 Clemson Classifieds 10  
    •     Userid       -­‐  Unique  id  of  the  client,  PRIMARY  KEY  of  the  table     Username     -­‐  A  valid  Clemson  Mainframe  Username     Password       -­‐  Password  of  the  client     Firstname       -­‐  First  name  of  the  client     Lastname       -­‐  Last  name  of  the  client     Gender       -­‐  Gender  of  the  client     Dateofbirth     -­‐  Date  of  birth  of  the  client     Address     -­‐  Address  of  the  Client       City       -­‐  City  where  the  client  lives     State       -­‐  State  where  the  client  lives       Zipcode     -­‐  Zip  code  of  the  client’s  city     Email       -­‐  Email  Address  of  the  client     Phone       -­‐  Phone  Number  of  the  client     Intcateg     -­‐  Interested  products  categories  of  the  client     EmailAlerts     -­‐  Interest  to  subscribe  for  E-­‐mail  Alerts     SmsAlerts     -­‐  Interest  to  subscribe  for  SMS  Alerts     PhoneCarrier                        -­‐  Mobile  Phone  Carrier  of  the  Client     ProfileImages Table: +----------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +----------+-------------+------+-----+---------+----------------+ | imgid | int(20) | NO | PRI | NULL | auto_increment | | imgname | varchar(50) | YES | | NULL | | | imgpath | blob | YES | | NULL | |   CpSc 662 Clemson Classifieds 11  
    •   | username | varchar(20) | YES | | NULL | | | userid | int(20) | YES | MUL | NULL | | +----------+-------------+------+-----+---------+----------------+ Imgid       -­‐  Unique  Id  of  the  profile  image,  PRIMARY  KEY  of  the  table     Imgname     -­‐  Name  of  the  profile  image       Imgpath       -­‐  Path  where  the  image  was  stored       Username     -­‐  A  valid  Clemson  Mainframe  Username     Userid       -­‐  Foreign  Key  used  as  a  reference  from  “Users”  Table   Administrator Table: +----------------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +----------------+-------------+------+-----+---------+----------------+ | adminid | int(20) | NO | PRI | NULL | auto_increment | | emailid | varchar(50) | YES | | NULL | | | firstname | varchar(50) | YES | | NULL | | | lastname | varchar(50) | YES | | NULL | | | username_admin | varchar(20) | YES | | NULL | | | password_admin | varchar(20) | YES | | NULL | | +----------------+-------------+------+-----+---------+----------------+ Adminid     -­‐  Unique  id  of  the  administrator,  PRIMARY  KEY  of  the  table     Emailid       -­‐  Email  address  of  the  administrator     Firstname       -­‐  First  name  of  the  Administrator     Lastname       -­‐  Last  name  of  the  Administrator     Username_admin   -­‐  A  valid  username  of  the  Administrator     Password_admin     -­‐  Password  of  the  Administrator         CpSc 662 Clemson Classifieds 12  
    •   Products Table: +---------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------------+--------------+------+-----+---------+----------------+ | productid | int(20) | NO | PRI | NULL | auto_increment | | dateofposting | date | YES | | NULL | | | deadline | date | YES | | NULL | | | price | decimal(7,2) | NO | | NULL | | | description | blob | YES | | NULL | | | productname | varchar(30) | YES | | NULL | | | keywords | varchar(200) | YES | | NULL | | | username | varchar(20) | YES | | NULL | | | userid | int(20) | YES | MUL | NULL | | | timeofposting | datetime | YES | | NULL | | | rating | float | YES | | NULL | | | approved | int(20) | YES | | NULL | | +---------------+--------------+------+-----+---------+----------------+ ProductId     -­‐  Unique  Id  of  a  Product,  PRIMARY  KEY  of  the  table     Dateofposting     -­‐  Date  when  the  item  was  posted     Deadline     -­‐  Deadline  when  the  product  gets  unavailable       Price       -­‐  Price  of  the  product     Description     -­‐  Detailed  description  of  the  product     Productname     -­‐  Name  of  the  product     Keywords     -­‐  Keywords  related  to  the  product  posted  by  the  client     Username     -­‐  A  valid  Clemson  Mainframe  Username     Userid       -­‐  Foreign  Key  used  as  a  reference  from  “Users”  Table     Timeofposting           -­‐  Time  when  the  item  was  posted     Approved       -­‐   This   field   describes   if   the   product   has   been   approved   by   administrator  or  not                  administrator  or  not       CpSc 662 Clemson Classifieds 13  
    •   ProductImages Table: +-------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------+--------------+------+-----+---------+----------------+ | imgid | int(20) | NO | PRI | NULL | auto_increment | | imgname | varchar(50) | YES | | NULL | | | imgpath | blob | YES | | NULL | | | productname | varchar(200) | YES | | NULL | | | productid | int(20) | YES | MUL | NULL | | +-------------+--------------+------+-----+---------+----------------+   Imgid       -­‐  Unique  id  of  the  image  associated  with  a  product,  PRIMARY  KEY  of                                                                                                                  the  table   Imgname     -­‐  Name  of  the  product  image     Imgpath     -­‐  Path  of  the  Image  where  it  resides  on  the  server     Productname     -­‐  Name  of  the  product       ProductId     -­‐  Foreign  Key  used  as  a  reference  from  “Products”  Table   Category Table: +----------------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +----------------+-------------+------+-----+---------+----------------+ | categoryname | varchar(20) | NO | | NULL | | | categoryid | int(20) | NO | PRI | NULL | auto_increment | | parentcategory | varchar(50) | YES | | NULL | | | productid | int(20) | YES | MUL | NULL | | +----------------+-------------+------+-----+---------+----------------+ Name       -­‐  Name  of  the  product  category       Categoryid     -­‐  Unique  id  of  the  category,  PRIMARY  KEY  of  the  table     ParentCategory   -­‐  Applicable  for  subcategories,  displays  the  parent  category              name       ProductId     -­‐  Foreign  Key  used  as  a  reference  from  “Products”  Table       CpSc 662 Clemson Classifieds 14  
    •   Ratings Table: +-----------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------+-------------+------+-----+---------+----------------+ | ratingid | int(20) | NO | PRI | NULL | auto_increment | | rating | int(10) | YES | | NULL | | | username | varchar(20) | YES | | NULL | | | userid | int(20) | YES | MUL | NULL | | | productid | int(20) | YES | MUL | NULL | | +-----------+-------------+------+-----+---------+----------------+ RatingID     -­‐  Unique  Id  of  Rating  table,  PRIMARY  KEY  of  the  table     Rating       -­‐  Rating  of  the  product     Username     -­‐  A  valid  Clemson  Mainframe  Username     Userid       -­‐  Foreign  Key  used  as  a  reference  from  “Users”  Table     ProductId     -­‐  Foreign  Key  used  as  a  reference  from  “Products”  Table           Comments Table: +-----------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------+-------------+------+-----+---------+----------------+ | commentid | int(20) | NO | PRI | NULL | auto_increment | | comments | blob | YES | | NULL | | | username | varchar(20) | YES | | NULL | | | productid | int(20) | YES | MUL | NULL | | | userid | int(20) | YES | MUL | NULL | | +-----------+-------------+------+-----+---------+----------------+ Commentid     -­‐  Unique  id  of  the  Comment  posted,  PRIMARY  KEY  of  the  table     Comments                 -­‐  Comments  entered  by  the  user     Username     -­‐  A  valid  Clemson  Mainframe  Username     Userid       -­‐  Foreign  Key  used  as  a  reference  from  “Users”  Table     ProductId     -­‐  Foreign  Key  used  as  a  reference  from  “Products”  Table     CpSc 662 Clemson Classifieds 15  
    •   Forums Table: +--------------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +--------------+-------------+------+-----+---------+----------------+ | topicid | int(20) | NO | PRI | NULL | auto_increment | | topic | blob | YES | | NULL | | | timestamp | datetime | YES | | NULL | | | datecreated | date | YES | | NULL | | | username | varchar(20) | YES | | NULL | | | userid | int(20) | YES | MUL | NULL | | | topichead | varchar(60) | YES | | NULL | | | psubcategory | varchar(40) | YES | | NULL | | +--------------+-------------+------+-----+---------+----------------     Topicid     -­‐  Unique  id  of  each  topic,  PRIMARY  KEY  of  the  table     Topic       -­‐  Content  of  the  post       Timestamp       -­‐  Time  when  the  above  topic  was  posted     Date  Created       -­‐  Date  when  topic  was  started     Username     -­‐  A  valid  Clemson  Mainframe  Username     Userid       -­‐  Foreign  Key  used  as  a  reference  from  “Users”  Table     Topichead     -­‐  Name  of  the  topic     Psubcategory     -­‐  Subcategory  name  under  which  the  topic  exists.                                   CpSc 662 Clemson Classifieds 16  
    •   8. APPENDIX   Database Schema and table structures of Clemson Classifieds System:     -­‐-­‐  MySQL  dump  10.11   -­‐-­‐   -­‐-­‐  Host:  localhost        Database:  f09t14   -­‐-­‐  -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐   -­‐-­‐  Server  version   5.0.77     /*!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  */;   /*!40103  SET  @OLD_TIME_ZONE=@@TIME_ZONE  */;   /*!40103  SET  TIME_ZONE='+00:00'  */;   /*!40014  SET  @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS,  UNIQUE_CHECKS=0  */;   /*!40014   SET   @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS,   FOREIGN_KEY_CHECKS=0  */;   /*!40101   SET   @OLD_SQL_MODE=@@SQL_MODE,   SQL_MODE='NO_AUTO_VALUE_ON_ZERO'  */;   /*!40111  SET  @OLD_SQL_NOTES=@@SQL_NOTES,  SQL_NOTES=0  */;         -­‐-­‐   -­‐-­‐  Table  structure  for  table  `administrator`   -­‐-­‐     DROP  TABLE  IF  EXISTS  `administrator`;   SET  @saved_cs_client          =  @@character_set_client;   SET  character_set_client  =  utf8;   CREATE  TABLE  `administrator`  (      `adminid`  int(20)  NOT  NULL  auto_increment,      `emailid`  varchar(50)  default  NULL,      `firstname`  varchar(50)  default  NULL,      `lastname`  varchar(50)  default  NULL,      `username_admin`  varchar(20)  default  NULL,      `password_admin`  varchar(20)  default  NULL,      PRIMARY  KEY    (`adminid`)   )  ENGINE=MyISAM  AUTO_INCREMENT=2  DEFAULT  CHARSET=latin1;   SET  character_set_client  =  @saved_cs_client;     CpSc 662 Clemson Classifieds 17  
    •     -­‐-­‐   -­‐-­‐  Dumping  data  for  table  `administrator`   -­‐-­‐     LOCK  TABLES  `administrator`  WRITE;   /*!40000  ALTER  TABLE  `administrator`  DISABLE  KEYS  */;   INSERT   INTO   `administrator`   VALUES   (1,'svanama@clemson.edu','sri','kanth','admin','12345');   /*!40000  ALTER  TABLE  `administrator`  ENABLE  KEYS  */;   UNLOCK  TABLES;       -­‐-­‐   -­‐-­‐  Table  structure  for  table  `category`   -­‐-­‐     DROP  TABLE  IF  EXISTS  `category`;   SET  @saved_cs_client          =  @@character_set_client;   SET  character_set_client  =  utf8;   CREATE  TABLE  `category`  (      `categoryname`  varchar(20)  NOT  NULL,      `categoryid`  int(20)  NOT  NULL  auto_increment,      `parentcategory`  varchar(50)  default  NULL,      `productid`  int(20)  default  NULL,      PRIMARY  KEY    (`categoryid`),      KEY  `productid`  (`productid`)   )  ENGINE=MyISAM  AUTO_INCREMENT=256  DEFAULT  CHARSET=latin1;   SET  character_set_client  =  @saved_cs_client;     -­‐-­‐   -­‐-­‐  Dumping  data  for  table  `category`   -­‐-­‐     LOCK  TABLES  `category`  WRITE;   /*!40000  ALTER  TABLE  `category`  DISABLE  KEYS  */;   INSERT   INTO   `category`   VALUES   ('Laptops   ',130,'Electronics',NULL),('Desktop   Pcs   ',129,'Electronics',NULL),('Musical   Instruments   ',125,'Electronics',NULL),('CDs   &   DVDs   ',124,'Electronics',NULL),('Tutoring   ',122,'Services',NULL),('Write   /   Edit   ',121,'Services',NULL),('Travel   /   Vacational',120,'Services',NULL),('Therapeutic   ',119,'Services',NULL),('Real   Estate   ',117,'Services',NULL),('Sm   Biz   Ads   ',118,'Services',NULL),('Skilled   Trade   ',116,'Services',NULL),('Labor   /   Move   ',115,'Services',NULL),('Household   ',114,'Services',NULL),('Farm   /   Garden     CpSc 662 Clemson Classifieds 18  
    •   ',113,'Services',NULL),('Automotive   ',112,'Services',NULL),('Pet   ',111,'Services',NULL),('Lessons   ',110,'Services',NULL),('Legal   ',109,'Services',NULL),('Financial   ',108,'Services',NULL),('Event   ',107,'Services',NULL),('Creative   ',106,'Services',NULL),('Computer   ',105,'Services',NULL),('Beauty   ',104,'Services',NULL),('Office   /   Commercial   ',103,'Housing',NULL),('Parking   /   Storage   ',102,'Housing',NULL),('Vacation   rentals   ',101,'Housing',NULL),('Apartments   ',100,'Housing',NULL),('Housing   Wanted   ',99,'Housing',NULL),('Shared   Rooms   ',98,'Housing',NULL),('Sublets   &   Temporary   ',97,'Housing',NULL),('For   Sale   ',96,'Housing',NULL),('For   Rent   ',95,'Housing',NULL),('Childcare',94,'Community',NULL),('General',93,'Community',NULL),(' Groups',92,'Community',NULL),('Pets',91,'Community',NULL),('Events',90,'Community',NU LL),('Classes',89,'Community',NULL),('Volunteers',88,'Community',NULL),('Rideshare',87,'C ommunity',NULL),('Politics',86,'Community',NULL),('Local   News',85,'Community',NULL),('Musicians',84,'Community',NULL),('Lost   +   Found',83,'Community',NULL),('Artists',82,'Community',NULL),('Activities',81,'Community' ,NULL),('Writing  /  Editing',80,'Jobs',NULL),('Web  /  Info  Design',79,'Jobs',NULL),('Tv  /  Film   /   Video   ',78,'Jobs',NULL),('Transport   ',77,'Jobs',NULL),('Technical   Support   ',76,'Jobs',NULL),('Systems   /   Network',75,'Jobs',NULL),('Software   /   qa   /   dba   ',74,'Jobs',NULL),('Trade  /  Crafts',73,'Jobs',NULL),('Security',72,'Jobs',NULL),('Salon  /  Spa  /   Fitnes',71,'Jobs',NULL),('Sales',70,'Jobs',NULL),('Retail   /   wholesale',69,'Jobs',NULL),('Sporting   Goods',233,'For   Sale',82),('NonProfit   Sector',67,'Jobs',NULL),('Marketing   /   Pr   /   Ad',66,'Jobs',NULL),('Manufacturing',65,'Jobs',NULL),('Legal   /   Paralegal',64,'Jobs',NULL),('Internet   Engineers',63,'Jobs',NULL),('Human   Resources',62,'Jobs',NULL),('Government',61,'Jobs',NULL),('General   Labor',60,'Jobs',NULL),('Education',59,'Jobs',NULL),('Cars',201,'Automotive',50),('Business   /   Mngmnt',55,'Jobs',NULL),('Biotech   /   Design',53,'Jobs',NULL),('Art   /   Media   /   Design',52,'Jobs',NULL),('Arch   /   Engineering',51,'Jobs',NULL),('Admin   /   Office',50,'Jobs',NULL),('Medical   /   Health',48,'Jobs',NULL),('Accessories',47,'Automotive',NULL),('Boats',46,'Automotive',NULL ),('Bicycles',45,'Automotive',NULL),('Motorcycles',44,'Automotive',NULL),('Trucks',43,'Auto motive',NULL),('Cars',203,'Automotive',52),('Mobile   Phones',33,'Electronics',NULL),('Video   Players',32,'Electronics',NULL),('Music   Players',31,'Electronics',NULL),('Planes',30,'Automotive',NULL),('Bikes',29,'Automotive',NU LL),('Cars',28,'Automotive',NULL),('Full-­‐time',27,'Jobs',NULL),('Part-­‐ time',26,'Jobs',NULL),('BurgerKing',25,'Food',NULL),('msn',22,'Computer',NULL),('ibm',23,' Computer',NULL),('McD',24,'Food',NULL),('apple',21,'Computer',NULL),('Cars',199,'Automo tive',48),('Cars',200,'Automotive',49),('Tablet   PCs   ',131,'Electronics',NULL),('PDAs   ',132,'Electronics',NULL),('Furniture   ',134,'For   Sale',NULL),('Arts   &   Crafts   ',135,'For   Sale',NULL),('Books   ',136,'For   Sale',NULL),('Wanted   ',137,'For   Sale',NULL),('Household   Items   ',138,'For   Sale',NULL),('Jewelry   ',139,'For   Sale',NULL),('Photo   &   Video   ',140,'For   Sale',NULL),('Wood   &   Materials   ',141,'For   Sale',NULL),('Garage   Sale   ',142,'For   Sale',NULL),('Baby   Goods   ',143,'For   Sale',NULL),('Sporting   Goods   ',144,'For     CpSc 662 Clemson Classifieds 19  
    •   Sale',NULL),('Antiques',145,'For   Sale',NULL),('Clothes   ',146,'For   Sale',NULL),('Tools   &   Appliances   ',147,'For   Sale',NULL),('Free   Stuff   ',148,'For   Sale',NULL),('Toys   ',149,'For   Sale',NULL),('Tickets  ',150,'For  Sale',NULL),('Health  &  Beauty  ',151,'For  Sale',NULL),('Farm   &   Garden   ',152,'For   Sale',NULL),('Barter   ',153,'For   Sale',NULL),('Personal   Accessories',155,'For   Sale',NULL),('Collectibles   ',156,'For   Sale',NULL),('College',165,'Housing',NULL),('Cars',202,'Automotive',51),('Free   Stuff',193,'For   Sale',42),('Wanted',194,'For   Sale',43),('Mobile   Phones',188,'Electronics',36),('Musical   Instruments',189,'Electronics',37),('Laptops',190,'Electronics',38),('Cars',195,'Automotive', 44),('Cars',196,'Automotive',45),('Cars',197,'Automotive',46),('Cars',204,'Automotive',53),(' Cars',205,'Automotive',54),('Cars',206,'Automotive',55),('Cars',207,'Automotive',56),('Cars', 208,'Automotive',57),('Cars',209,'Automotive',58),('Cars',210,'Automotive',59),('Cars',211,' Automotive',60),('Cars',212,'Automotive',61),('Cars',213,'Automotive',62),('Cars',214,'Auto motive',63),('Cars',215,'Automotive',64),('Cars',216,'Automotive',65),('Cars',217,'Automoti ve',66),('Cars',218,'Automotive',67),('Cars',219,'Automotive',68),('Cars',220,'Automotive',6 9),('Cars',221,'Automotive',70),('Cars',222,'Automotive',71),('Cars',223,'Automotive',72),('C ars',224,'Automotive',73),('Cars',225,'Automotive',74),('Cars',226,'Automotive',75),('Cars',2 27,'Automotive',76),('Cars',228,'Automotive',77),('Cars',229,'Automotive',78),('Cars',230,'A utomotive',79),('Wanted',231,'For   Sale',80),('Cars',232,'Automotive',81),('Sporting   Goods',234,'For   Sale',83),('Sporting   Goods',235,'For   Sale',84),('Sporting   Goods',236,'For   Sale',85),('Sporting   Goods',237,'For   Sale',86),('Education',238,'Jobs',87),('Sporting   Goods',239,'For   Sale',88),('Sporting   Goods',240,'For   Sale',89),('Sporting   Goods',241,'For   Sale',90),('Boats',247,'Automotive',95),('Boats',248,'Automotive',96),('Planes',250,'Automo tive',98),('Sporting  Goods',255,'For  Sale',103),('Select  Category',252,'Services',100);   /*!40000  ALTER  TABLE  `category`  ENABLE  KEYS  */;   UNLOCK  TABLES;       -­‐-­‐   -­‐-­‐  Table  structure  for  table  `comments`   -­‐-­‐     DROP  TABLE  IF  EXISTS  `comments`;   SET  @saved_cs_client          =  @@character_set_client;   SET  character_set_client  =  utf8;   CREATE  TABLE  `comments`  (      `commentid`  int(20)  NOT  NULL  auto_increment,      `comments`  blob,      `username`  varchar(20)  default  NULL,      `productid`  int(20)  default  NULL,      `userid`  int(20)  default  NULL,      PRIMARY  KEY    (`commentid`),      KEY  `userid`  (`userid`),     CpSc 662 Clemson Classifieds 20  
    •      KEY  `productid`  (`productid`)   )  ENGINE=MyISAM  AUTO_INCREMENT=108  DEFAULT  CHARSET=latin1;   SET  character_set_client  =  @saved_cs_client;       -­‐-­‐   -­‐-­‐  Dumping  data  for  table  `comments`   -­‐-­‐     LOCK  TABLES  `comments`  WRITE;   /*!40000  ALTER  TABLE  `comments`  DISABLE  KEYS  */;   INSERT  INTO  `comments`  VALUES  (1,'comment  testing','svanama1',10,NULL),(2,'comment   testing   2','svanama1',10,NULL),(3,'rohan   test','f09t14',2,NULL),(4,'rohan   test2','svanama1',2,NULL),(5,'rohan   test2','svanama1',2,NULL),(6,'kanth   comment   123','svanama1',2,NULL),(7,'  ','svanama1',2,NULL),(8,'  ','svanama1',2,NULL),(9,'Comment  1   for   xbox   !!   :)','svanama1',32,NULL),(10,'Comment   1   for   xbox   !!   :)','svanama1',32,NULL),(11,'Comment   1   for   xbox   !!   :)','svanama1',32,NULL),(12,'hey','svanama1',32,NULL),(13,'hey','svanama1',32,NULL),(14,' hello','svanama1',32,NULL),(15,'hey   tyt','svanama1',32,NULL),(16,'123','svanama1',32,NULL),(17,'kanth','svanama1',0,NULL),(1 8,'456','svanama1',0,NULL),(19,'456','svanama1',0,NULL),(20,'456','svanama1',0,NULL),(21 ,'lkjhgfd','svanama1',0,NULL),(22,'lkjhgfd','svanama1',0,NULL),(23,'lkjhgfd','svanama1',32, NULL),(24,'keka','svanama1',32,NULL),(25,'keka','svanama1',32,NULL),(26,'kevvu   ','svanama1',32,NULL),(27,'kevvu   ','svanama1',32,NULL),(28,'fire','svanama1',32,NULL),(29,'fire','svanama1',32,NULL),(30,'w ater','svanama1',32,NULL),(31,'earth','svanama1',32,NULL),(32,'earth','svanama1',32,NULL ),(33,'earth','svanama1',32,NULL),(34,'earth','svanama1',32,NULL),(35,'earth','svanama1',3 2,NULL),(36,'captain   planet','svanama1',32,NULL),(37,'captain   planet','svanama1',32,NULL),(38,'captain   planet','svanama1',32,NULL),(39,'789','svanama1',32,NULL),(40,'789','svanama1',32,NULL) ,(41,'kkkkkkk','svanama1',32,NULL),(42,'kkkkkkk','svanama1',32,NULL),(43,'lkjkbdg','svan ama1',33,NULL),(44,'lkjkbdg','svanama1',32,NULL),(45,'lkjkbdg','svanama1',34,NULL),(46,' lkjkbdg','svanama1',33,NULL),(47,'lkjkbdg','svanama1',32,NULL),(48,'lkjkbdg','svanama1',3 4,NULL),(49,'abc','svanama1',33,NULL),(50,'abc','svanama1',32,NULL),(51,'abc','svanama1', 34,NULL),(52,'abc','svanama1',33,NULL),(53,'abc','svanama1',32,NULL),(54,'abc','svanama 1',34,NULL),(55,'asdf','svanama1',33,NULL),(56,'asdf','svanama1',32,NULL),(57,'asdf','svan ama1',34,NULL),(58,'asdf','svanama1',33,NULL),(59,'asdf','svanama1',32,NULL),(60,'asdf','s vanama1',34,NULL),(61,'asdf','svanama1',33,NULL),(62,'asdf','svanama1',32,NULL),(63,'as df','svanama1',34,NULL),(64,'asdf','svanama1',33,NULL),(65,'asdf','svanama1',32,NULL),(6 6,'asdf','svanama1',34,NULL),(67,'asdf','svanama1',33,NULL),(68,'asdf','svanama1',32,NULL ),(69,'asdf','svanama1',34,NULL),(70,'asdf','svanama1',33,NULL),(71,'asdf','svanama1',32,N ULL),(72,'asdf','svanama1',34,NULL),(73,'item   33','svanama1',33,NULL),(74,'yes   !!rn','svanama1',33,NULL),(75,'its   me!','rrajeev',32,NULL),(76,'hey   !     CpSc 662 Clemson Classifieds 21  
    •   :D','svanama1',32,NULL),(77,'last   one   !','svanama1',34,NULL),(78,'askdjrnasldkjasdrnalskdjasldjrnlaksdj','svanama1',34,N ULL),(79,'Im   the   last   one   !   :D','svanama1',34,NULL),(80,'hello','svanama1',37,NULL),(81,'nice   phone   :D','svanama1',36,NULL),(82,'hey','svanama1',0,NULL),(83,'hey','svanama1',0,NULL),(84,'h ey','svanama1',0,NULL),(85,'hello','svanama1',0,NULL),(86,'good   on1','svanama1',36,NULL),(87,'asdf','svanama1',0,NULL),(88,'asdf','svanama1',0,NULL),(89, 'asdf','svanama1',38,NULL),(90,'hey','svanama1',37,NULL),(91,'hey   wassup','svanama1',36,NULL),(92,'hey   wassup','svanama1',36,NULL),(93,'nice   laptop   !','svanama1',38,NULL),(94,'aksjhdaklsj','svanama1',36,NULL),(95,'http://www.google.com /','svanama1',36,NULL),(96,'Nice   Car   !','svanama1',46,NULL),(97,'chep   deal   ever   !','svanama1',43,NULL),(98,'hello','svanama1',43,NULL),(99,'Awesome   car   !','svanama1',45,NULL),(100,'hello','svanama1',46,NULL),(101,'hello   ','svanama1',44,NULL),(102,'awesome   !','svanama1',81,NULL),(103,'gyjyikuk','svanama1',38,NULL),(104,'I   love   audi   !','svanama1',44,NULL),(105,'nice   deal   !','svanama1',90,NULL),(106,'jarf','svanama1',90,NULL),(107,'i   love   apple','svanama1',38,NULL);   /*!40000  ALTER  TABLE  `comments`  ENABLE  KEYS  */;   UNLOCK  TABLES;       -­‐-­‐   -­‐-­‐  Table  structure  for  table  `forums_kanth`   -­‐-­‐     DROP  TABLE  IF  EXISTS  `forums_kanth`;   SET  @saved_cs_client          =  @@character_set_client;   SET  character_set_client  =  utf8;   CREATE  TABLE  `forums_kanth`  (      `topicid`  int(20)  NOT  NULL  auto_increment,      `topic`  blob,      `timestamp`  datetime  default  NULL,      `datecreated`  date  default  NULL,      `username`  varchar(20)  default  NULL,      `userid`  int(20)  default  NULL,      `topichead`  varchar(60)  default  NULL,      `psubcategory`  varchar(40)  default  NULL,      PRIMARY  KEY    (`topicid`),      KEY  `userid`  (`userid`)   )  ENGINE=MyISAM  AUTO_INCREMENT=512  DEFAULT  CHARSET=latin1;   SET  character_set_client  =  @saved_cs_client;       CpSc 662 Clemson Classifieds 22  
    •   -­‐-­‐   -­‐-­‐  Dumping  data  for  table  `forums_kanth`   -­‐-­‐     LOCK  TABLES  `forums_kanth`  WRITE;   /*!40000  ALTER  TABLE  `forums_kanth`  DISABLE  KEYS  */;   INSERT   INTO   `forums_kanth`   VALUES   (502,'This   is   a   sub   comment   1','2009-­‐12-­‐09   18:02:26',NULL,'svanama1',NULL,'This   is   a   comment   1',NULL),(422,'0','2009-­‐11-­‐24   06:33:49',NULL,'svanama1',NULL,'topic2','Baby   Goods'),(420,'0','2009-­‐11-­‐24   06:32:18',NULL,'svanama1',NULL,'arts  &  crafts  _  topic  1','Arts  &  Crafts'),(421,'0','2009-­‐11-­‐ 24  06:33:08',NULL,'svanama1',NULL,'baby  goods  _  topic1','Baby  Goods'),(469,'0','2009-­‐12-­‐ 01   08:32:32',NULL,'svanama1',NULL,'hello','Sub   Category'),(426,'hey   waasup','2009-­‐11-­‐24   06:39:28',NULL,'svanama1',NULL,'baby   goods   _   topic1',NULL),(501,'This   is   a   comment   1','2009-­‐12-­‐09   18:02:08',NULL,'svanama1',NULL,'Nokia   e71x',NULL),(500,'0','2009-­‐12-­‐09   09:45:31',NULL,'amangip',NULL,'Lg   Shine','Mobile   Phones'),(496,'0','2009-­‐12-­‐09   09:38:44',NULL,'svanama1',NULL,'Nokia   e71x','Mobile   Phones'),(497,'0','2009-­‐12-­‐09   09:39:03',NULL,'svanama1',NULL,'Apple   iPhone','Mobile   Phones'),(498,'0','2009-­‐12-­‐09   09:42:43',NULL,'rrajeev',NULL,'Blackberry','Mobile   Phones'),(460,'0','2009-­‐11-­‐24   07:58:42',NULL,'rrajeev2',NULL,'Topic2','Baby   Goods'),(499,'0','2009-­‐12-­‐09   09:44:44',NULL,'rakkera',NULL,'Sony  Ericsson  w580i','Mobile  Phones'),(444,'rei','2009-­‐11-­‐ 24   06:58:48',NULL,'rrajeev',NULL,'hey   waasup',NULL),(445,'rei','2009-­‐11-­‐24   06:59:03',NULL,'rrajeev',NULL,'hey   waasup',NULL),(446,'rei','2009-­‐11-­‐24   06:59:05',NULL,'rrajeev',NULL,'hey   waasup',NULL),(459,'g2','2009-­‐11-­‐24   07:20:03',NULL,'rrajeev',NULL,'topic2',NULL),(494,'My   comment','2009-­‐12-­‐08   22:01:09',NULL,'svanama1',NULL,'topic2',NULL),(464,'0','2009-­‐11-­‐24   08:16:59',NULL,'svanama1',NULL,'hello','Artists'),(465,'0','2009-­‐11-­‐24   09:02:21',NULL,'rrajeev2',NULL,'Newpost-­‐hello','Baby   Goods'),(466,'I   like   it','2009-­‐11-­‐24   09:03:19',NULL,'rrajeev2',NULL,'Topic2',NULL),(492,'new   thread','2009-­‐12-­‐08   21:51:44',NULL,'svanama1',NULL,'baby   goods   _   topic1',NULL),(477,'0','2009-­‐12-­‐06   00:20:24',NULL,'svanama1',NULL,'IBM   PC','Computer'),(476,'0','2009-­‐12-­‐06   00:20:15',NULL,'svanama1',NULL,'Google   OS','Computer'),(475,'0','2009-­‐12-­‐06   00:19:58',NULL,'svanama1',NULL,'Apple   Macbook','Computer'),(478,'I   love   Macbook   !!','2009-­‐12-­‐06  00:20:53',NULL,'svanama1',NULL,'Apple  Macbook',NULL),(479,'Apple  Sucks   !!','2009-­‐12-­‐06   00:21:28',NULL,'rrajeev2',NULL,'Apple   Macbook',NULL),(482,'Bad   review   !','2009-­‐12-­‐06   00:22:30',NULL,'rrajeev2',NULL,'I   love   Macbook   !!',NULL),(483,'Lol   !   ','2009-­‐ 12-­‐06   00:22:57',NULL,'svanama1',NULL,'Apple   Sucks   !!',NULL),(484,'0','2009-­‐12-­‐06   14:42:06',NULL,'svanama1',NULL,'Abcs','Childcare'),(485,'This   is   a   comment!','2009-­‐12-­‐06   14:42:29',NULL,'svanama1',NULL,'Abcs',NULL),(486,'this   is   a   sub   comment','2009-­‐12-­‐06   14:42:41',NULL,'svanama1',NULL,'This   is   a   comment!',NULL),(487,'this   is   a   sub   comment   2','2009-­‐12-­‐06   14:42:48',NULL,'svanama1',NULL,'This   is   a   comment!',NULL),(488,'0','2009-­‐12-­‐08   21:40:06',NULL,'svanama1',NULL,'abcdef','Baby   Goods'),(489,'This   a   thread   !','2009-­‐12-­‐08   21:41:29',NULL,'svanama1',NULL,'topic2',NULL),(504,'Hi   !','2009-­‐12-­‐09     CpSc 662 Clemson Classifieds 23  
    •   18:38:21',NULL,'svanama1',NULL,'Apple   iPhone',NULL),(505,'Hello   !','2009-­‐12-­‐09   18:38:25',NULL,'svanama1',NULL,'Apple   iPhone',NULL),(506,'It   sucks   !!','2009-­‐12-­‐09   18:39:17',NULL,'rrajeev',NULL,'Hi   !',NULL),(507,'Good   one   !','2009-­‐12-­‐09   18:39:27',NULL,'rrajeev',NULL,'Hello   !',NULL),(508,'Think   twice   !','2009-­‐12-­‐09   18:39:49',NULL,'svanama1',NULL,'Hi   !',NULL),(509,'Bad   review   !','2009-­‐12-­‐09   18:39:55',NULL,'svanama1',NULL,'Hello   !',NULL),(510,'I   love   this   phone   !','2009-­‐12-­‐09   18:40:31',NULL,'amangip',NULL,'Apple   iPhone',NULL),(511,'I   hate   apple   1','2009-­‐12-­‐09   18:41:06',NULL,'rrajeev',NULL,'I  love  this  phone  !',NULL);   /*!40000  ALTER  TABLE  `forums_kanth`  ENABLE  KEYS  */;   UNLOCK  TABLES;         -­‐-­‐   -­‐-­‐  Table  structure  for  table  `productimages`   -­‐-­‐     DROP  TABLE  IF  EXISTS  `productimages`;   SET  @saved_cs_client          =  @@character_set_client;   SET  character_set_client  =  utf8;   CREATE  TABLE  `productimages`  (      `imgid`  int(20)  NOT  NULL  auto_increment,      `imgname`  varchar(50)  default  NULL,      `imgpath`  blob,      `productname`  varchar(200)  default  NULL,      `productid`  int(20)  default  NULL,      PRIMARY  KEY    (`imgid`),      KEY  `productid`  (`productid`)   )  ENGINE=MyISAM  AUTO_INCREMENT=110  DEFAULT  CHARSET=latin1;   SET  character_set_client  =  @saved_cs_client;     -­‐-­‐   -­‐-­‐  Dumping  data  for  table  `productimages`   -­‐-­‐     LOCK  TABLES  `productimages`  WRITE;   /*!40000  ALTER  TABLE  `productimages`  DISABLE  KEYS  */;   INSERT   INTO   `productimages`   VALUES   (26,NULL,'images/iphone1.jpg','iPhone',36),(27,NULL,'images/iphone2.jpg','iPhone',36),(2 8,NULL,'images/iphone3.jpg','iPhone',36),(29,NULL,'images/nano768.jpg','ipod   nano',37),(30,NULL,'images/nano9.jpg','ipod   nano',37),(31,NULL,'images/apple-­‐macbook-­‐ pro-­‐with-­‐multi-­‐ touch.jpg','Macbook',38),(32,NULL,'images/macbook_pro.jpg','Macbook',38),(33,NULL,'ima   CpSc 662 Clemson Classifieds 24  
    •   ges/macbook-­‐ pro.jpg','Macbook',38),(34,NULL,'images/x2.jpg','xbox',39),(35,NULL,'images/','android',40 ),(37,NULL,'images/apple-­‐pie.jpg','apple   pie',42),(38,NULL,'images/red-­‐apple.jpg','apple   fruit',43),(39,NULL,'images/56_ATR16235893_image2_300.jpg','AUDI  R8  4.2  FSI  Quattro  R   Tronic   COUPE   2008   ',44),(40,NULL,'images/56_ATR16235893_image1_300.jpg','AUDI   R8   4.2   FSI   Quattro   R   Tronic   COUPE   2008   ',44),(41,NULL,'images/56_ATR16235893_image4_300.jpg','AUDI   R8   4.2   FSI   Quattro   R   Tronic   COUPE   2008   ',44),(42,NULL,'images/56_ATR16235893_image5_300.jpg','AUDI   R8   4.2   FSI   Quattro   R   Tronic   COUPE   2008   ',44),(43,NULL,'images/56_ATR16235893_image6_300.jpg','AUDI   R8   4.2   FSI   Quattro   R   Tronic   COUPE   2008   ',44),(44,NULL,'images/56_ATR16235893_image7_300.jpg','AUDI   R8   4.2   FSI   Quattro   R   Tronic   COUPE   2008   ',44),(45,NULL,'images/bmw.jpg','BMW   X6   3.5d   xDrive   Step   ESTATE   2009',45),(46,NULL,'images/bmw2.jpg','BMW   X6   3.5d   xDrive   Step   ESTATE   2009',45),(47,NULL,'images/bmw3.jpg','BMW   X6   3.5d   xDrive   Step   ESTATE   2009',45),(48,NULL,'images/bmw4.jpg','BMW   X6   3.5d   xDrive   Step   ESTATE   2009',45),(49,NULL,'images/mercedes1.jpg','Mercedes   Benz   E   Class   Saloon   6.3   demonstrator.   Saloon   2009',46),(50,NULL,'images/mercedes2.jpg','Mercedes   Benz   E   Class   Saloon   6.3   demonstrator.   Saloon   2009',46),(51,NULL,'images/mercedes3.jpg','Mercedes   Benz   E   Class   Saloon   6.3   demonstrator.   Saloon   2009',46),(52,NULL,'images/mercedes4.jpg','Mercedes   Benz   E   Class   Saloon   6.3   demonstrator.   Saloon   2009',46),(107,NULL,'images/gal_best_23.jpg','pending',101),(99,NULL,'images/','hey',93), (100,NULL,'images/pie.jpg','hello123',94),(101,NULL,'images/car_kill_list.jpg','wassup123', 95),(102,NULL,'images/car_kill_list.jpg','wassup123wef',96),(103,NULL,'images/car_kill_lis t.jpg','wassup123wef',97),(104,NULL,'images/coke-­‐ murder.jpg','hateu',98),(105,NULL,'images/truck.jpg','approvedeny1',99),(106,NULL,'imag es/USA.jpg','approvedeny2',100),(94,NULL,'images/football.jpg','Football1',88),(95,NULL,'i mages/sonyl.jpg','Laptops',89),(96,NULL,'images/footballkk.jpg','Football',90),(97,NULL,'i mages/hybrid.jpg','Hey',91),(98,NULL,'images/ATgAAABHpTDwaP7O8uSSoSX-­‐ EjqbwLEPJtgtwLU3-­‐mH-­‐OfHxdwq4Pmmn87w-­‐ kEoe3lxjYean_urrfnZwOS2rrysSFKk9AJtU9VAYb2qKPTZ_6T5Xgbp9ru2WMjCXWA.jpg','dyk l',92),(108,NULL,'images/','pending2',102),(109,NULL,'images/football.jpg','football   for   sale',103);   /*!40000  ALTER  TABLE  `productimages`  ENABLE  KEYS  */;   UNLOCK  TABLES;               -­‐-­‐   -­‐-­‐  Table  structure  for  table  `products`     CpSc 662 Clemson Classifieds 25  
    •   -­‐-­‐     DROP  TABLE  IF  EXISTS  `products`;   SET  @saved_cs_client          =  @@character_set_client;   SET  character_set_client  =  utf8;   CREATE  TABLE  `products`  (      `productid`  int(20)  NOT  NULL  auto_increment,      `dateofposting`  date  default  NULL,      `deadline`  date  default  NULL,      `price`  decimal(7,2)  NOT  NULL,      `description`  blob,      `productname`  varchar(30)  default  NULL,      `keywords`  varchar(200)  default  NULL,      `username`  varchar(20)  default  NULL,      `userid`  int(20)  default  NULL,      `timeofposting`  datetime  default  NULL,      `rating`  float  default  NULL,      `approved`  int(20)  default  NULL,      PRIMARY  KEY    (`productid`),      KEY  `userid`  (`userid`)   )  ENGINE=MyISAM  AUTO_INCREMENT=104  DEFAULT  CHARSET=latin1;   SET  character_set_client  =  @saved_cs_client;     -­‐-­‐   -­‐-­‐  Dumping  data  for  table  `products`   -­‐-­‐     LOCK  TABLES  `products`  WRITE;   /*!40000  ALTER  TABLE  `products`  DISABLE  KEYS  */;   INSERT   INTO   `products`   VALUES   (36,'2009-­‐11-­‐12','2009-­‐12-­‐17','299.00','Greatest   Phone   Ever   !     ','iPhone','apple,   iphone,   phone,   appstore','svanama1',NULL,'2009-­‐11-­‐12   07:02:35',3,1),(37,'2009-­‐11-­‐12','2009-­‐12-­‐23','149.00','Awesome   Music   Player   !','ipod   nano','ipod,  nano,  apple,  music','svanama1',NULL,'2009-­‐11-­‐12  07:03:59',3,1),(38,'2009-­‐11-­‐ 12','2009-­‐12-­‐27','1249.00','Advanced  Notebook  Ever  !!','Macbook','apple,  macbook,  laptop,   notebook','svanama1',NULL,'2009-­‐11-­‐12   07:21:11',4,1),(39,'2009-­‐11-­‐03','2009-­‐12-­‐ 29','266.00','xbox','xbox','xbox,   xbox360','svanama1',NULL,'2009-­‐11-­‐03   08:08:08',2.5,1),(42,'2009-­‐11-­‐15','2009-­‐12-­‐25','4.00','awesome   sweet   dish   !','apple   pie','apple   pie,   sweet,   pie','svanama1',NULL,'2009-­‐11-­‐15   21:50:12',3.5,1),(43,'2009-­‐11-­‐ 15','2009-­‐12-­‐26','5.00','fruit','apple   fruit','apple,   fruit,   red','svanama1',NULL,'2009-­‐11-­‐15   21:50:52',3.5,1),(44,'2009-­‐11-­‐17','2011-­‐03-­‐24','5000.00','AUDI   R8   4.2   FSI   Quattro   R   Tronic,   2   Doors,   Automatic,   Coupe,   Petrol,   2008   08   Reg   ,   9,000   miles,   White.   Navigation   system,   Reverse   parking   aid,   ABS,   Air   conditioning,   Alloy   wheels,   Anti   theft   system,   Body   kit,  Climate  Control,  Computer,  Cruise  control,  Full  Service  History,  Electrically  adjustable     CpSc 662 Clemson Classifieds 26  
    •   seats,   Heated   seats,   Leather   seats,   Limited   slip   differential,   Multi   function   steering   wheel,   Spoiler,  Tinted  glass,  Traction  control,  TV,  F1  Paddleshift  Gearchange,  Bi  Xenon  headlamps.   Insurance   Group:20,   AA   parts/labour   warranty   available,   7   day   free   Norwich   Union   insurance  available  subject  to  status,  ','AUDI  R8  4.2  FSI  Quattro  R  Tron','audi,  cars,  white,   car','rrajeev2',NULL,'2009-­‐11-­‐17   05:02:14',3.5,1),(45,'2009-­‐11-­‐17','2010-­‐03-­‐ 11','4000.00','BMW   X6   3.5d   xDrive   Step,   Automatic,   Estate,   Diesel,   2009   59   Reg   ,   2,100   miles,   Black,   1   Owner,   UK   Vehicle,   Black   Sapphire   with   Black   leather   electric   heated   memory  sport  seats,  20"  alloys,  Sat  Nav,  Navigation,  Media  pack,  Dynamic  pack,  Bluetooth,   Multi  CD,  DAB  radio,  BMW  ConnectedDrive-­‐Assist,  BMW  ConnectedDrive-­‐Online,  Reversing   camera,   Head-­‐up   display,   Extended   interior   light   pack,   USB   interface,   Electric   steering   column,  Black  flywheel  aluminium  interior  trim,  Privacy,  Sidesteps,  Parking  sensors,  Rain   sensor,   Auto   dimming   rear   view   mirror,   Xenons,   Headlamp   wash,   Front   fog   lights,   Auto   lights,  Computer,  Cruise,  Dual  zone  climate,  Leather  multi  function  steering  wheel,  Center   arm   rests,   Split   rear   folding   seats,   Shark   fin,   Twin   exhaust,   Warranty   until   September   2012,','BMW   X6   3.5d   xDrive   Step   ESTATE','bmw,   car,   black,   cars,   black   car,   black   cars','rrajeev2',NULL,'2009-­‐11-­‐17   05:08:12',2.5,1),(46,'2009-­‐11-­‐17','2010-­‐09-­‐ 23','6000.00','2009  (09)  MERCEDES  BENZ  SL  Class  SL63  AMG  ,  8327  miles,  Iridium  Silver,   Petrol,   Automatic   Transmission,   Black   Leather   Interior,','Mercedes   Benz   E   Class   Saloon   6','mercedes,   car,   white,   cars,   white   car,   white   cars','rrajeev2',NULL,'2009-­‐11-­‐17   05:12:18',3.5,1),(90,'2009-­‐11-­‐24','2009-­‐12-­‐28','35.00','Nice   Football','Football','American   Football,   football,   brown   football,','test1',NULL,'2009-­‐11-­‐24   08:58:52',4,1),(89,'2009-­‐11-­‐ 24','2009-­‐12-­‐22','1300.00','Laptops,   sony,   black   laptop','Laptops','Laptops,   sony,   black   laptop,','test1',NULL,'2009-­‐11-­‐24  08:39:41',4,1),(88,'2009-­‐11-­‐24','2009-­‐12-­‐26','30.00','nice   football','Football1','football,   american   football,','test1',NULL,'2009-­‐11-­‐24   08:23:52',0,1),(103,'2009-­‐12-­‐09','2010-­‐01-­‐08','45.00','nice   football','football   for   sale','football,  black  football,','svanama1',NULL,'2009-­‐12-­‐09  19:14:03',0,1);   /*!40000  ALTER  TABLE  `products`  ENABLE  KEYS  */;   UNLOCK  TABLES;       -­‐-­‐   -­‐-­‐  Table  structure  for  table  `profileimages`   -­‐-­‐     DROP  TABLE  IF  EXISTS  `profileimages`;   SET  @saved_cs_client          =  @@character_set_client;   SET  character_set_client  =  utf8;   CREATE  TABLE  `profileimages`  (      `imgid`  int(20)  NOT  NULL  auto_increment,      `imgname`  varchar(50)  default  NULL,      `imgpath`  blob,      `username`  varchar(20)  default  NULL,      `userid`  int(20)  default  NULL,     CpSc 662 Clemson Classifieds 27  
    •      PRIMARY  KEY    (`imgid`),      KEY  `userid`  (`userid`)   )  ENGINE=MyISAM  AUTO_INCREMENT=61  DEFAULT  CHARSET=latin1;   SET  character_set_client  =  @saved_cs_client;     -­‐-­‐   -­‐-­‐  Dumping  data  for  table  `profileimages`   -­‐-­‐     LOCK  TABLES  `profileimages`  WRITE;   /*!40000  ALTER  TABLE  `profileimages`  DISABLE  KEYS  */;   INSERT   INTO   `profileimages`   VALUES   (1,'svanama1   -­‐   iphone','images/001-­‐33-­‐ jpg.jpg','svanama1',NULL),(18,'','images/','rrajeev',NULL),(59,'','images/','',59),(60,'','image s/','svanama12',60),(57,'12345','images/federer.jpg','test1',57),(58,'12345','images/federe r2.jpg','rrajeev2',58);   /*!40000  ALTER  TABLE  `profileimages`  ENABLE  KEYS  */;   UNLOCK  TABLES;       -­‐-­‐   -­‐-­‐  Table  structure  for  table  `ratings`   -­‐-­‐     DROP  TABLE  IF  EXISTS  `ratings`;   SET  @saved_cs_client          =  @@character_set_client;   SET  character_set_client  =  utf8;   CREATE  TABLE  `ratings`  (      `ratingid`  int(20)  NOT  NULL  auto_increment,      `rating`  int(10)  default  NULL,      `username`  varchar(20)  default  NULL,      `userid`  int(20)  default  NULL,      `productid`  int(20)  default  NULL,      PRIMARY  KEY    (`ratingid`),      KEY  `productid`  (`productid`),      KEY  `userid`  (`userid`)   )  ENGINE=MyISAM  DEFAULT  CHARSET=latin1;   SET  character_set_client  =  @saved_cs_client;           -­‐-­‐   -­‐-­‐  Dumping  data  for  table  `ratings`     CpSc 662 Clemson Classifieds 28  
    •   -­‐-­‐     LOCK  TABLES  `ratings`  WRITE;   /*!40000  ALTER  TABLE  `ratings`  DISABLE  KEYS  */;   /*!40000  ALTER  TABLE  `ratings`  ENABLE  KEYS  */;   UNLOCK  TABLES;       -­‐-­‐   -­‐-­‐  Table  structure  for  table  `users`   -­‐-­‐     DROP  TABLE  IF  EXISTS  `users`;   SET  @saved_cs_client          =  @@character_set_client;   SET  character_set_client  =  utf8;   CREATE  TABLE  `users`  (      `userid`  int(20)  NOT  NULL  auto_increment,      `username`  varchar(20)  default  NULL,      `password`  varchar(20)  default  NULL,      `title`  varchar(10)  default  NULL,      `firstname`  varchar(50)  default  NULL,      `lastname`  varchar(50)  default  NULL,      `gender`  enum('Male','Female')  default  NULL,      `dateofbirth`  date  default  NULL,      `address`  varchar(60)  default  NULL,      `city`  varchar(30)  default  NULL,      `state`  varchar(30)  default  NULL,      `zipcode`  varchar(30)  default  NULL,      `email`  varchar(50)  default  NULL,      `phone`  varchar(20)  default  NULL,      `intcateg`  varchar(3000)  default  NULL,      `emailalerts`  enum('Yes','No')  default  NULL,      `smsalerts`  enum('Yes','No')  default  NULL,      `phonecarrier`  varchar(20)  default  NULL,      PRIMARY  KEY    (`userid`),      UNIQUE  KEY  `username`  (`username`)   )  ENGINE=MyISAM  AUTO_INCREMENT=61  DEFAULT  CHARSET=latin1;   SET  character_set_client  =  @saved_cs_client;         -­‐-­‐   -­‐-­‐  Dumping  data  for  table  `users`     CpSc 662 Clemson Classifieds 29  
    •   -­‐-­‐   LOCK  TABLES  `users`  WRITE;   /*!40000  ALTER  TABLE  `users`  DISABLE  KEYS  */;   INSERT   INTO   `users`   VALUES   (1,'svanama1','12345','Mr.','sri','kanth','Male','1967-­‐08-­‐ 27','1108   tiger   blvd,   apt   #141,   village   green','Clemson','CA','29885','svanama@clemson.edu','8657655518','Trucks,Motorcycles,B icycles,Planes,Bikes,Boats,Cars,Accessories,Sporting   Goods,Automotive,','Yes','','AT&T'),(12,'amangip','12345','Mr.','Rohan','Rajeevan','Male','19 87-­‐09-­‐08','1108   tiger   blvd   apt   #141','Clemson','SC','29885','amangip@clemson.edu','8646339457','CDs   &   DVDs,Desktop   Pcs,Laptops,Mobile   Phones,Music   Players,Musical   Instruments,PDAs,Tablet   PCs,Video   Players,Sporting   Goods,','Yes','','Verizon'),(57,'rakkera','12345','Mr.','Rohan','Rajeevan','Male','1987-­‐09-­‐ 07','1108   tiger   blvd   apt   #141','Clemson','SC','29631','rakkera@clemson.edu','8062201228','CDs   &   DVDs,Desktop   Pcs,Laptops,Mobile   Phones,Music   Players,Musical   Instruments,PDAs,Tablet   PCs,Video   Players,Sporting   Goods,Automotive,Beauty,Computer,Creative,Event,Farm   /   Garden,Financial,Household,Labor   /   Move,Legal,Lessons,Pet,Real   Estate,Skilled   Trade,Sm   Biz   Ads,Therapeutic,Travel   /   Vacational,Tutoring,Write   /   Edit,','Yes','','T-­‐ Mobile'),(58,'rrajeev','12345','Mr.','Rohan','Rajeevan','Male','1987-­‐09-­‐07','1108   tiger   blvd   apt   #141','Clemson','SC','29631','rrajeev@clemson.edu','3612460434','Pets,Groups,General,Ev ents,Activities,Artists,Lost   +   Found,Musicians,Local   news,Rideshare,Volunteers,Classes,Childcare,Politics,Sporting   Goods,Apartments,College,For   Rent,For   Sale,Housing   Wanted,Office   /   Commercial,Parking   /   Storage,Shared   Rooms,Sublets   &   Temporary,Vacation   rentals,','Yes','Yes','AT&T'),(60,'kkaruma','12345','','','','Male','0000-­‐00-­‐ 00','','','','','kkaruma@clemson.edu','6789380321',',','Yes','Yes','Select'),(59,'','','','','','','0000-­‐ 00-­‐00','','','','','','',',','','','');   /*!40000  ALTER  TABLE  `users`  ENABLE  KEYS  */;   UNLOCK  TABLES;   /*!40103  SET  TIME_ZONE=@OLD_TIME_ZONE  */;     /*!40101  SET  SQL_MODE=@OLD_SQL_MODE  */;   /*!40014  SET  FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS  */;   /*!40014  SET  UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS  */;   /*!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  */;   /*!40111  SET  SQL_NOTES=@OLD_SQL_NOTES  */;   -­‐-­‐  Dump  completed  on  2009-­‐12-­‐10  14:08:42     CpSc 662 Clemson Classifieds 30