+ All Categories
Home > Technology > WEB APPLICATION USING PHP AND MYSQL

WEB APPLICATION USING PHP AND MYSQL

Date post: 12-Jan-2017
Category:
Upload: aakash-khandelwal
View: 100 times
Download: 2 times
Share this document with a friend
58
i WEB APPLICATION USING PHP AND MYSQL A project report submitted in partial fulfilment of the requirements for B.Tech Project B.Tech. By Aakash Khandelwal (2012-IPG-001) Ayush Agrawal (2012-IPG-020) Rohit Nimiya (2012-IPG-078) ABV INDIAN INSTITUTE OF INFORMATION TECHNOLOGY AND MANAGEMENT GWALIOR-474 010 2015
Transcript
Page 1: WEB APPLICATION USING PHP AND MYSQL

i

WEB APPLICATION USING PHP AND MYSQL

A project report submitted in partial fulfilment of the requirements

for B.Tech Project

B.Tech.

By

Aakash Khandelwal (2012-IPG-001) Ayush Agrawal (2012-IPG-020) Rohit Nimiya (2012-IPG-078)

ABV INDIAN INSTITUTE OF INFORMATION

TECHNOLOGY AND MANAGEMENT GWALIOR-474 010

2015

Page 2: WEB APPLICATION USING PHP AND MYSQL

i

CANDIDATES DECLARATION We hereby certify that the work, which is being presented in the report, entitled CollegeHaat:

A Leading Cross Category Classifieds Platform, in partial fulfilment of the requirement for

the award of the Degree of Bachelor of Technology and submitted to the institution is an

authentic record of our own work carried out during the period from May 2015 to September

2015 under the supervision of Dr. Vinay Singh. We also cited the reference about the

text(s)/figure(s)/table(s) from where they have been taken.

The matter presented in this report has not been submitted elsewhere for the award of any other

degree of diploma from any Institutions.

Date: Signature of the candidates:

This is to certify that the above statement made by the candidates is correct to the best of my

knowledge.

Date: Signature of the supervisor:

Page 3: WEB APPLICATION USING PHP AND MYSQL

ii

ACKNOWLEDGEMENT

It is our brilliant supposition to put on record our best respects, most profound feeling of

appreciation to Dr. Vinay Singh for his valuable direction which were to a great degree

supportive for our study both hypothetically and for all intents and purposes. The supporting

and blooming of the present work is for the most part because of his important direction,

recommendations, sharp judgment, useful feedback and an eye for flawlessness. Our tutor

constantly addressed heap of our questions with grinning generosity and colossal persistence,

never giving us a chance to feel that we are fledglings by continually listening carefully to our

perspectives, giving so as to acknowledge and enhancing them and us a free submit our task.

We might likewise want to take this chance to thank our associates, whose opportune direction

and backing helped us to keep up advancement in the right track. We couldn't have done this

without him.

We might likewise want to recognize with much gratefulness the pivotal part of the staff of

Laboratory, who gave the authorization to utilize all the important assets to finish our task.

The theme of our B. Tech Project is "CollegeHaat-A main cross classification classifieds

stage".

The matter displayed in this proposition has not been submitted somewhere else for the grant

of some other level of confirmation from any Institutions.

Aakash Khandelwal Ayush Agrawal Rohit Nimiya

(2012-IPG001) (2012-IPG020) (2012-IPG078)

Page 4: WEB APPLICATION USING PHP AND MYSQL

iii

ABSTRACT

CollegeHaat is a new concept which is introduced in the field of E-Commerce. CollegeHaat is

a free classified platform, its sole purpose is to provide a platform to sell used products at a

inter college level. These products varies categories wise. It includes the sale of all the products

within a college which are mainly useful for students within a college life. These products are

categorized into different departments like electronics, books, stationary, vehicles, etc.

With the rapid evolution of technology over the past 15 years, there has been a huge growth in

E-Commerce environment. Usually "E-Commerce" refers to a site that sells products or

services over the internet. E-Commerce has gained a lot of popularity, and there will be a time

when the complete business will be shifted to the Internet.

Within a college every student is not always capable of purchasing a new product. There are

many items which are valuable for 3-4 months only like books for a particular subjects are

useful for a particular semester only, so instead of purchasing new products students can

purchase second-hand items within an institute with the help of this website.

This platform helps the students to buy a second-hand items from another students and when

used can re-sale it on this website. So it provides a medium to students to not to always move

to marketplace. This form of platform is termed as CollegeHaat which makes the sharing of

used products easy at an inter-college level.

Page 5: WEB APPLICATION USING PHP AND MYSQL

iv

TABLE OF CONTENTS

ACKNOWLEDGEMENT ii

ABSTRACT iii

LIST OF TABLES vi

LIST OF FIGURES vii

ABBREVIATIONS ix

1. INTRODUCTION AND LITERATURE SURVEY 1

1.1 Introduction 1

1.1.1. Online Store 1

1.2 Literature Survey 2

1.2.1 OLX 2

1.2.2 QUICKR 2

1.2.3 Content Management System 2

1.2.3.1 Challenges for Drupal and Joomla 3

1.2.3. 2 Leverage Provide by WordPress 4

1.3 Research Methodology 6

1.4 Proposed Solution 12

1.5 Motivation 12

1.6 Objective 12

2. DESIGN DETAILS AND IMPLEMENTATION 13

2.1 Programming Languages and Frameworks Used 13

2.1.1 Client Side 13

2.1.2 Server Side 14

2.1.3 MVC (Model View Controller) 14

2.2 Development 18

2.2.1 Login / Register 19

2.2.1.1 Social Login 19

2.2.2 User`s Account 20

2.2.2.1 Orders 21

2.2.2.2 Downloads 22

2.2.2.3 Wishlist 22

2.2.2.4 Login/Logout 23

Page 6: WEB APPLICATION USING PHP AND MYSQL

v

2.2.3 Search a Product 24

2.2.4 Product Details 25

2.2.4.1 Quick View 25

2.2.4.2 Full Details 25

2.2.4.3 Compare with Other Product 25

2.2.4.4 Description and Product Review 25

2.2.4.5 Product Categories and Ranges 25

2.2.5 Payment Methods 26

2.2.6 Submit your Product 26

2.2.7. Plugins used with CollegeHaat 29

2.2.7.1 WordPress Plugins 30

2.2.7.2 YIT Plugins 31

2.2.8 Database Snapshots 37

2.2.9 E-R Diagram 38

2.2.9.2 E-R model - (WordPress) 38

2.2.9.2 E-R model – (Website) 39

3. RESULTS AND DISCUSSION 40

4. CONCLUSION 41

4.1 Conclusion 41

4.2 Future work 41

REFERENCES 42

APPENDIX I 44

Page 7: WEB APPLICATION USING PHP AND MYSQL

vi

LIST OF TABLES

1. Table-1.1 Comparing Average setup cost and maintenance fees of different

CMS 19

2. Table 2.2 - User Details and their formats in which they are stored in Database. 21

3. Table 2.3 - User Details and their description for advertising or selling their own

products 26

4. Table 2.4: Table showing information of registered users 37

5. Table 2.5: Showing all tables in our database like comments, sliders, users,

links, comments etc. 37

Page 8: WEB APPLICATION USING PHP AND MYSQL

vii

LIST OF FIGURES:

1. Figure 1.1 – Internet users by country: In million (2014) 6

2. Figure 1.2 – Demographic profile of India online users (as on September 2013) 6

3. Figure 1.3 – Geographical distribution of Internet users in India (million) 6

4. Figure 1.4 – Online orders per month (in million) 6

5. Figure 1.5 – India`s E-Commerce and e-tail growth. 7

6. Figure 1.6 – E-Commerce Drivers and Challenges 7

7. Figure 1.7 – Source of study during a semester 8

8. Figure 1.8 – Distribution of sales preference for second hand items among

different categories.

8

9. Figure 1.9 – Preferred option for buying a book 9

10. Figure 1.10 – Number of students who willingly buy second – hand items. 9

11. Figure 1.11 – Number of students aware with E-Commerce. 9

12. Figure 1.12 – Familiarity with free classified website. 10

13. Figure 1.13 – Main reason for shopping online 10

14. Figure 1.14 – Major Challenges faced when shopping online. 11

15. Figure 1.15 - Number of times, a student has done shopping online. 11

16. Figure 1.16 – Preferred mode of Payment used when shopping online 11

17. Figure 2.1 - MVC - I 16

18. Figure 2.2 - MVC – II 17

19. Figure 2.3 - MVC – III 17

20. Figure 2.4 - Data flow diagram of web model 18

Page 9: WEB APPLICATION USING PHP AND MYSQL

viii

21. Figure 2.5 – Accessing of restricted areas of the website after gaining proper

access After login or registration a user can get access to all the restricted area of

the website.

20

22. Figure 2.6 – Internal structure of functioning of the website 23

23. Figure 2.7 – WordPress Query Structure to be used in search in the website 24

24. Figure – 2.8 (a) – Cloud Diagram showing Product Categories

Figure – 2.8 (a) – Cloud Diagram showing Product Ranges

25

25. Figure 2.9 – Workflow after adding a product to cart, which explains checkout,

coupons, payments, shipping, tracking and delivery confirmation.

27

26. Figure 2.9 – Workflow for safely upgrading WordPress engine. 28

27. Figure 2.10 – WordPress Core and Plugins working 29

28. Figure 2.11 – E-R Diagram of WordPress 38

29. Figure 2.12 – E-R Diagram of all the entities related to our website like suppliers,

product, orders, users, payments etc...

39

30. (Appendix) Figure – 1.1 Home page of solution provided 44

31. (Appendix) Figure – 1.2 Page showing User Account Details 44

32. (Appendix) Figure – 1.3 Database showing list of Products 45

33. (Appendix) Figure – 1.4 Web page showing all the products 45

34. (Appendix) Figure – 1.5 Page showing Product Details in Detailed View 46

35. (Appendix) Figure – 1.6 Page showing Product Details in Quick View 46

36. (Appendix) Figure – 1.7 Website Footer – showing categories, ranges, cart and

enquiry form.

47

37. (Appendix) Figure – 1.8 AJAX Search, recommending search results on based of

keywords provided

47

38. (Appendix) Figure – 1.9 Chat view from the side of chat operator. 48

39. (Appendix) Figure – 1.10 Chat UI for clients / customers 48

Page 10: WEB APPLICATION USING PHP AND MYSQL

ix

ABBREVIATIONS

HTML Hyper Text Markup Language

WP WordPress

YITH Your Inspiration Themes

CSS Cascading Style Sheet

JQUERY Java Script Query

PHP Hypertext Pre-processor

MYSQL My Structure Query Language

CMS Content Management System

E-COMMERCE Electronic Commerce

SEO Search Engine Optimization

ACL Access Control List

CNN Cable News Network

XML Extensible Markup Language

SVG Scalable Vector Graphics

XUL Xml User Interface Language

ASP Active Server Pages

MVC Model View Controller

URL Uniform Resource Locator

RSS Rich Site Summary

EMAIL Electronic Mail

PDF Portable Document Format

CD Compact Disc

DVD Digital Video Disc

AJAX Asynchronous Java Script And XML

YIT Your Inspiration Themes

ER DIAGRAM Entity Relationship Diagram

IFRS International Financial Reporting Standard

SQL Structure Query Language

Page 11: WEB APPLICATION USING PHP AND MYSQL

1

CHAPTER 1

INTRODUCTION AND LITERATURE SURVEY

1.1 INTRODUCTION

E-Commerce means buying and selling of goods and services through the Internet. It is a very

broad term, and one can gain innumerable jobs from E-Commerce.

Selling and Buying of products through internet is the main use of E-Commerce technology.

This field is very vast and many platforms are embedded in it. So, E-Commerce has gained a

lot of popularity, and there will be a time when the complete business will be shifted to the

Internet. So, if anyone is planning to start the online business, then it’s better to begin by

selecting a perfect E-Commerce platform.

E commerce is getting popular day by day by making online presence. Extending and

supporting the development of an e-trade business is a humongous assignment as a result of

the regularly expanding rivalry in the business sector. For a fruitful E-Commerce business, an

easy to use inventive site is completely fundamental.

1.1.1 ONLINE STORES

Most electronic business destinations are online stores which have at any rate the

accompanying components at the front-office level:

A category of products which shows to which department any particular product belongs,

further it shows the product details like its price, specifications, etc.

A web crawler which makes it conceivable to effectively find an item through hunt criteria

(brand, value reach, watchword, and so forth.).

A virtual cart: It makes it conceivable to follow the buys of the customer along the way

and adjust the amounts for every reference.

An online payment portal: It is frequently guaranteed by a trusted outsider (a bank) by

means of a safe exchange.

An order tracking system, which permits following of request handling and in some cases

gives data on pickup of the bundle by the shipper.

Page 12: WEB APPLICATION USING PHP AND MYSQL

2

1.2 LITERATURE SURVEY

1.2.1. OLX:

Olx is an online classifieds platform for selling used goods such as vehicle’s, furniture’s,

electronics, etc.

How is Olx doing: The site is now in over 90 countries and 40 languages with over 140 million

unique visitors per month. The company has over 160 employees with offices in New York,

Buenos Aires, Sao Paulo, Delhi, Moscow and Beijing.

Olx website working: As a seller one should upload the picture and give description of the

stuff along with quote (price) and as a buyer one should contact seller on the contact

information (email, phone) provided by seller and buy it from him.

Sources of Income of Olx: Olx don’t charge directly from any users, the source of income for

them are mainly AdSense Ads / Google Ads, Sponsored Ads / Banners and Premium Ads.

1.2.2. QUIKR:

Quikr is India’s leading cross category classifieds platform where people connect with each

other to buy or sell goods and services on their mobile phones and other devices.

How is Quikr doing: Headquartered in Bangalore, Quikr has a presence in 1000 cities in India

and operates in over 10 categories that include mobile phones, household goods, cars, real

estate, jobs, services and education.

Finance: In 2014, Quikr raised about $150 million, of which it raised a $60 million investment

in a round led by Tiger Global with participation from several existing investors and raised $90

million in investment in a round led by Kinnevik. Till date, Quikr has raised a total of $350

million from 7 funding rounds since its inception.

1.2.3 CONTENT MANAGEMENT SYSTEM (CMS)

Drupal, Joomla and WordPress are all CMS applications. These applications have turned into

an "Absolute necessity HAVE" buzz word — most site proprietors need them without

comprehension their utilization. Some site proprietors feel that CMS applications are the way

to a site's prosperity or trust that any prevalent CMS application is going to work for any

undertaking, any size or many-sided quality — that is never the case.

Page 13: WEB APPLICATION USING PHP AND MYSQL

3

1.2.3.1 CHALLENGES FOR DRUPAL AND JOOMLA

Regardless of their prevalence, both Drupal and Joomla DO NOT give a typical percentage

marking components that each site needs, as its centre components:

Extraordinary marking and outline.

Drupal and Joomla are both format based CMS applications, they are fabricated by developers

and not architects or individuals with configuration, marking, and showcasing skill.

It is conceivable to make a site with one of a kind marking utilizing Drupal or Joomla; Be that

as it may, in light of the fact that when those applications were constructed, there was not any

accentuation or impressive exertion creating remarkable marking components. It is all the more

a dreary and time­ consuming procedure to actualize a site obliging numerous extraordinary

marking components utilizing

Remarkable category pages

Most locales (particularly organizations and establishments) will oblige special Product,

Services or Category pages. Despite the fact that this can be expert by Drupal, Joomla or

WordPress, it can be a repetitive and time­ consuming process.

This element is excluded as the centre usefulness of any of these items. In WordPress this

feature can be further extended to different tags within a single category which remove the

repetitive use of categories.

One of a kind pages and ease of use

Studies demonstrate that for better ease of use, it is prescribed to utilize special components

identified with every page so the client can better recognize which page he/she is on. A decent

illustration of a one of a kind component for every page would be an exceptional flag. Of

course, as their centre usefulness, Drupal, Joomla or WordPress are setup to utilize the same

pennant or same component outline for all pages. As WordPress provide wide ranges of plugins

and customizable themes, this issue can be resolved and unlike Joomla and Drupal, WordPress

has improved far on this aspect.

Instinctive and user friendly administration

The principle reason for a Content Management System is to make it simple for even a fledgling

PC client to keep up what's more, deal with a site. Both Drupal and Joomla have an

exceptionally bloated and befuddling organization. This is on the grounds that both have been

Page 14: WEB APPLICATION USING PHP AND MYSQL

4

put together by software engineers and there have not been any perceptible ease of use

endeavours put into these applications.

As of this written work, Drupal's organization interface (adaptation 6.19 ­ August 11, 2010) is

confounding and not client well disposed. There was exploration done by University of

Minnesota Office for Information Technology's ease of use lab which distinguished numerous

ease of use issues with Drupal's organization.

Joomla's organization ease of use and expectation to learn and adapt is superior to anything

Drupal's, yet insufficient to give a recognizable point of interest to the end-user over Drupal.

WordPress has a vastly improved and extremely natural organization

Average setup cost and maintenance

Table-1.1 Comparing Average setup cost and maintenance fees of different CMS

1.2.3.2 LEVERGAE PROVIDED BY WORDPRESS

WORDPRESS is world’s favourite blogging software

There are more than 68 million websites currently running on WordPress ranging

from blogs to various E-Commerce portals.

Some famous online platforms which use WordPress are –

1.The New York Times

2.CNN

3.Forbes

4.Reuters

Major Features of WordPress are –

It helps to accommodates multiple authors at a single time.

SEO (Search Engine Optimization) Efficient and favourable over other

competitors.

Drupal Joomla WordPress

Average Setup and

Customization Cost

$5,000 - $50,000 $2,000 - $20,000 $250 - $15,000

Average Monthly

Maintenance

$1000-$2000 $500 $250

Page 15: WEB APPLICATION USING PHP AND MYSQL

5

Expansive plugin library – WordPress comes with a wide ranges of plugin

ranging from a responsive slider to buddy press (a social media platform

created on WordPress of intra connectivity in an organization).

Easy to customize - It is highly customizable according to the user needs, a big

thanks to its vast plugin library.

Flexible

User-friendly

WordPress also overcomes many disadvantages of its major competitors like

JOOMLA and DRUPAL as these CMS lacks -

Steep learning curve – As compared to WordPress, Joomla and Drupal are very

hard to learn. They required more advance knowledge of the domain and

therefore are less preferred among users as compared to WordPress.

Lacks quality free Plugins – WordPress comes with a wide range of plugin

facilities which is hardly provided by its competitors.

Not intuitive

Lacks SEO capability

Limited access control list(ACL) support

Page 16: WEB APPLICATION USING PHP AND MYSQL

6

1.3 RESEARCH METHODOLOGY

An Internet survey was done on E-Commerce and following results were found -

(Source - PricewaterhouseCoopers Private Limited (PwCPL), Authored by: Jitesh Bijlani

URL: www.pwc.in/ghost.../E-Commerce-in-india-accelerating-growth.html )

Figure 1.1 – Internet users by country:

In million (2014)

Figure 1.2 – Demographic profile of

India online users (as on September

2013)

Figure 1.3 – Geographical distribution of

Internet users in India (million)

Figure 1.4 – Online orders per month

(in million)

Page 17: WEB APPLICATION USING PHP AND MYSQL

7

Figure 1.5 – India`s E-Commerce and e-tail growth.

Figure 1.6 – E-Commerce Drivers and Challenges

Page 18: WEB APPLICATION USING PHP AND MYSQL

8

A study was directed online through Google Docs. The example were understudies of different

fields from diverse colleges. The specimen size was 219 which included understudies of both

science and commerce fields. The review pointed of becoming acquainted with individual’s

enthusiasm for e-trade. Likewise it went for taking in individuals' enthusiasm toward

CollegeHaat.

Figure 1.7 – Source of study during a semester

Figure 1.8 – Distribution of sales preference for second hand items among different

categories.

30%

83%

13%

56%

21%

63%

0% 20% 40% 60% 80% 100%

Prefer to buy a new book

Get Photostat of books or notes

Try to learn from ebook

Buy a second-hand book

Depend on course materials,if provided…

Learn from online notes

Source of study during a semester

23%

35%

62%

15%

81%

41%

0% 20% 40% 60% 80% 100%

Others

Mobile Accessories

Electronics Items

Vehicles (if allowed in campus)

Stationary Items and Books

PC accessories

Distribution of sales preference for second hand items among different categories

Page 19: WEB APPLICATION USING PHP AND MYSQL

9

Figure 1.9 – Preferred option for buying a book

Figure 1.10 – Number of students who willingly

buy second – hand items.

Figure 1.11 – Number of students aware

with E-Commerce.

0% 20% 40% 60% 80%

Get it secondhand from local book mart

Get a new copy from local book mart

Order online a new copy

Try to find an ebook version

Ask from Seniors

73%

12%

7%

45%

53%

Preferred option for buying a book

Series2 Series1

62%

38%

Buy Second-Hand Items

yes no

100%

0%

Aware with E-Commerce

yes no

Page 20: WEB APPLICATION USING PHP AND MYSQL

10

Figure 1.12 – Familiarity with free classified website

Figure 1.13 – Main reason for shopping online.

0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%

olx

quickr

ebay

secondhandmall

abebooks

secondhandbookindia

bookadda

amazon-tradein

93%

82%

74%

15%

4%

12%

47%

19%

Familiarity with free Classified website

0% 20% 40% 60% 80% 100%

Wide Variety

Large Discount

Satisfaction

No Transportation Cost

24-Hour Availablity

Large Customer Support

Easy Refund and Return Back policy

53%

82%

19%

79%

31%

37%

49%

Main reason for shopping online.

Page 21: WEB APPLICATION USING PHP AND MYSQL

11

Figure 1.14 – Major Challenges faced when shopping online.

Figure 1.15 - Number of times, a

student has done shopping online.

Figure 1.16 – Preferred mode of Payment used

when shopping online

17% 3%

45%

35%

Number of times, a student has done shopping online

Less than 5 times Never

Less than 15 times Frequently

83%

17%

Preferred Mode of Payment

Cash on delivery Onnline payment

2%

10%

35%

27%

46%

39%

32%

28%

56%

0% 10% 20% 30% 40% 50% 60%

Not familiar with online shopping

Worry on payment security

Worry on personal privacy

Worry on product quality

Enjoy traditioanal shopping

Too complicated procedures

Unable to touch the products

Expensive shipment fees

No interaction with shop assistants

Major Challenges faced when shopping online.

Page 22: WEB APPLICATION USING PHP AND MYSQL

12

1.4 PROPOSED SOLUTION

CollegeHaat is a web based application using php and MySQL which is a platform to sell used

items within an institute at a very nominal price. It allows a user to register/login into the

website so that a user can have its own personal account so that he/she can login whenever

required. The product are categorized according to the categories like electronics items, books,

etc. Users can also use a search bar to search any particular product directly.

There is a facility to view the product directly as well as user can view the product via different

angles. There is an option of adding a product to cart so that user can view the list of all of its

item in his cart at the time of checkout. It also provide various types of payment options such

as via credit/debit card, cash on delivery, etc.

1.5 MOTIVATION

Although huge progress has been done in the area of E-Commerce environment like olx, quikr,

etc., which sells used products it still lacks in providing services to any particular inter-college

level so that many things like books and notes sharing, selling the used items within the same

institute at a very cheaper price can be done.

For example, a student who didn’t want to purchase new book so instead of spending a lot of

money can buy a second-hand book which has been used by someone else in the institute at a

very cheaper price.

1.6 OBJECTIVE

The sole target of our examination is to add to a model which furnish with a simple and

productive access to second-hand items like books, electronics items, and stationary items at a

very cheaper price within an institute.

To help students to save money from spending money on new products.

To minimize time from visiting the market place to buy new product.

Page 23: WEB APPLICATION USING PHP AND MYSQL

13

CHAPTER 2

DESIGN DETAILS AND IMPLEMENTATION

2.1 PROGRAMMING LANGUAGES AND FRAMEWORKS USED -

2.1.1 CLIENT-SIDE:

HTML 5: HTML stands for Hyper Text Mark-up Language and is generally the basis

for all the webpages we see today. It defines elements on a webpage and tells browsers

what to display, how to display it, and where. A mark-up Language is a set of mark-

up tags. HTML documents are described by HTML tags. Each HTML tag describes

different document content. Each Tag has a different kind of meaning for the web

page.

CSS: Cascading Style Sheets (CSS) is a template dialect utilized for portraying the

look and arranging of a record written in an imprint up dialect. Although regularly

used to change the style of website pages and Client interfaces written in HTML and

XHTML, the dialect can be connected to any sort of XML archive, including plain

XML, SVG and XUL. Along With HTML and JavaScript, CSS is a foundation

innovation utilized by most Sites to make outwardly captivating site pages, client

interfaces for web Applications, and client interfaces for some portable applications.

JavaScript: Our browser is what interprets all the files that the server sends us, and in

large part, JavaScript helps us to interact with the website without necessarily needing

to communicate with the server. This is why JavaScript is a client-side scripting

language. JavaScript lets the website do things like validate forms, create visual effects,

etc.

2.1.2 SERVER SIDE:

PHP: PHP is a server side programming dialect. PHP is an effective apparatus for

making dynamic and intuitive Web pages. PHP is the generally utilized, free, and

effective different option for contenders, for example, Microsoft's ASP. PHP is a

deciphered programming dialect which gives out html code php is the work behind in

locales such email or discussions we see. PHP is a broadly utilized universally useful

scripting dialect that is particularly suited for Web improvement and can be inserted

into HTML.

Page 24: WEB APPLICATION USING PHP AND MYSQL

14

Apache HTTP Server: It is a Web server application. It gives PHP a local web

server module for adding backing to a web server. Discharged under the Apache

License, Apache is open-source programming.

MySQL: It is an open-source RDBMS that keeps running as a server giving multi-

client access to various databases.

WordPress: It is a content administration framework also known as CMS (Content

Management System) taking into account MySQL and PHP. It has a plugin structural

planning and a format framework. Its discharges are codenamed after well-known jazz

artists. It permits to amplify its element with the assistance of plugins the vast majority

of which are open-source.

XAMPP: It is an improvement situation for PHP. It comprise of Apache, MySQL

database, translators for PHP scripts, all in one spot.

2.1.3 MVC (MODEL VIEW CONTROLLER)

WordPress is kinda-sorta MVC. On the off chance that anything it is a force sort MVC format,

where the View "pulls" information from the model. It this in an exceptionally procedural

manner, rather than utilizing loads of distinctive items, however this really makes the front end

formats simpler to write from numerous points of view.

This likewise gives the perspectives some level of controller rationale (hence the kinda-sorta

MVC).

The working of WordPress can be explained as –

WordPress gets a URL. The WordPress core goes about as a controller and figures out what

introductory inquiries to keep running of the database, and by expansion, what view ought to

be stacked (classification perspective, single post or site visit, and so forth.). It then bundles

that INTIAL inquiry reaction and sends it to the view record.

That view document can be a strict show just record or it can ask for extra data/questions past

the inherent one. This is the force sort of the MVC, where the perspective pulls information

from the model rather than the controller "pushing" information from the model into the view.

Along these lines, when the view sees code to load a sidebar or gadget range, it requests that

data. Notwithstanding, what widgets ought to be there is dictated by the controller, which takes

a gander at the model for what widgets are in the sidebar, and afterward chooses those that are

set to appear on the present page, and returns those to the view.

Page 25: WEB APPLICATION USING PHP AND MYSQL

15

That every piece of that isn't an object doesn't make this any less MVC. WE can modify WP

core without (essentially) adjusting anything around a theme. Essentially, the length of one

utilize assembled in capacities like 'get_pages ()' then the model and the database tables could

change the length of those capacities still gave back the right information. Thus, the model is

free of the view, and the controller is autonomous too (aside from when the view adds controller

rationale to accomplish more than the core typically does).

While we COULD have a model article holding various systems and stuff like

WPModel::get_pages ('blah'), and contain everything that route, there is still principal

detachment of concerns.

View: template files

Controller: WP core Model: the various functions that handle specific data handling.

The length of the names, contentions, and so forth keep with it (or simply have new ones

included) then partition of concerns is kept up and one can be modified without irritating the

others.

It isn't a super-clean form of MVC, (particularly when snares get included), however at a

fundamental level it begins there. What’s more, being procedural about it isn't a terrible thing.

A request from a site is pretty intrinsically procedural: it is a procedure with a reasonable

starting and end, and simply needs a technique to transform the request, get information, bundle

it, and afterward pass on. One can set up those progressions with items and article strategies

and OOP formats (which would make a few things less demanding) or can simply compose a

considerable measure of capacity gets and isolate them out that way. Class individuals like

private variables are lost that way yet relying upon the application's needs... one won't not give

it a second thought.

Page 26: WEB APPLICATION USING PHP AND MYSQL

16

Figure 2.1 - MVC - I

Page 27: WEB APPLICATION USING PHP AND MYSQL

17

Figure 2.2 - MVC – II

Figure 2.3 - MVC – III

Page 28: WEB APPLICATION USING PHP AND MYSQL

18

2.2. DEVELOPMENT

This area comprises of our strategies and rationales used to convey to this venture. Utilizing

word press as CMS of our decision, we utilized apache as the server and MySQL as the

database.

All advancements said above were utilized to do our task and make an item, a site making it

much less demanding for client to gaze upward the substance and select the most suitable.

There are different functionalities gave, for example, Searching a specific thing/item,

login/enlistment of a client, instalment gateway, seeing the item from distinctive points and

so forth., all of which will be talked about quickly as how they are actualized.

Figure 2.4 - Data flow diagram of web model

Page 29: WEB APPLICATION USING PHP AND MYSQL

19

2.2.1 LOGIN/REGISTRATION

A login or sign in alludes to the qualifications needed to get access to a record or other

confined range by Logging in. When a client has signed in, they can then log out when access

is no more required.

Registration is a strategy for authoritatively recording something. Generally something is

enrolled to guarantee more rights, or to ensure possession, or in light of the fact that the law

says it must be enlisted to be utilized lawfully.

Table 2.1 - Login and registration table

For Login –

Username or email address

Password

For Registration –

Email Address

Password

2.2.1.1 SOCIAL LOGIN It uses a simple open protocol, to allow secure authorization in a simple and standard

method from desktop, mobile and web applications. It provides simple way to publish

and interact with protected data. It allows the visitors to comment, login and register

with various common Social Networks. It increases User Engagement in a few simple

steps. The various Social Networks/ Providers are –

Facebook Pinterest RSS

Twitter Tumblr Skype

Google+ LinkedIn Email

YouTube Instagram Behance

Dribble Flickr

Please enter your Username or Email Address

Please enter your Password

Please enter your Email Address

Please enter your Password

Page 30: WEB APPLICATION USING PHP AND MYSQL

20

Figure 2.5 – Accessing of restricted areas of the website after gaining proper access

After login or registration a user can get access to all the restricted area of the website.

1.2.2 USER’S ACCOUNT

It refers to the user’s own profile where user can edit the details of his/her account like edit

wish list, view the list of orders made by him in past, edit his/her address, etc. Major User

roles provided on the website are -

Administrator

Editor

Author

Contributor

Subscriber

Customer

Shop Manager

YITH Live Chat Operator

User Account contains following user details. Any user can edit these details anytime by

Clicking on Edit Address/Edit Account option and can save them for any future reference

Page 31: WEB APPLICATION USING PHP AND MYSQL

21

Table 2.2 - User Details and their formats in which they are stored in Database.

Subsections of User`s Account -

Orders

Downloads

Wishlist

Login/Logout

2.2.2.1 ORDERS

The shopping cart element is generally put together all the items ordered at past

purchasing session as well as current session at any E-Commerce site. It's verging on

difficult to envision a store without a shopping basket capacity included. The most

famous shopping basket symbol is a straightforward crate so it bodes well to pick

something comparative for any site. Numerous stores likewise give their clients private

records where it's conceivable to check all their past and current requests. Orders

section under Users Account provides the same facility in our website.

Each client who joins can pick an individual login and secret key for further get to. In

addition, proprietors of such records can get unique markdown offers from the store

proprietors and take an interest in diverse advancements or deals.

On the off chance that one manage an expansive online store that has a wide decision

of products then the inquiry (search) box is an unquestionable requirement have. This

will likewise demonstrate mainstream with clients who request a particular item that

First Name CHAR

Last Name CHAR

Current Password VARCHAR

New Password VARCHAR

Confirm Password VARCHAR

Email Address VARCHAR

Address VARCHAR

City VARCHAR

State VARCHAR

Pin Code INT

Phone Number INT

Page 32: WEB APPLICATION USING PHP AND MYSQL

22

they simply need to situate from the online store to make their request. Order section

also facilitates the use of runtime recommending search engine. One can update his

previous order, can get the PDF invoice of all the previous orders taken place, he can

also track the current orders position. If Coupons are available, anyone can apply them

and can redeem the amount from the actual price of the product purchase.

This section just provide a summary of items purchase and hence allow user to proceed

for checkout and payment process.

2.2.2.2 Downloads

If a user has bought any sort of digital goods, like software, eBooks, PDF documents,

CDs and DVDs (Online Version), Soft Copy of any material then all those item would

appeared in this section for a certain time period so that user can download and save it

to its own location can be online or offline.

There would be some links to online storage platform to directly store and save the

products to them like Dropbox, Google Drive, One Drive etc.

2.2.2.3 WISHLIST

Offering a list of things to get is one approach to assist lessen with shop pinging truck

deserting and build deals for the E-Commerce store. Online lists of things to get are

advanced accumulations of things that customers might want to claim. Clients add items

to a rundown associated with their profile on a particular site. The rundown is saved

money on the site so the client can allude back to it later or move stock into their

shopping basket to buy. Lists of things to get let customers put things aside and keep

skimming - until an item is moved from the list of things to get to the shopping basket,

it's not held for the client.

E-Commerce stores that offer list of things to get abilities to clients make the shopping

procedure less demanding. Lists of things to get wipe out the inconvenience of directing

a new online quest for an item. Wish records make it less demanding to shop online for

loved ones. When a list of things to get is finished, the inventor can send it to loved

ones in foresight of occasions, birthdays or life occasions. On the off chance that

somebody who is new to the store's items might want to purchase a thing as a blessing,

he or she may not know where to begin. As opposed to strolling into a block and-mortar

store and examining choices with a business agent, these purchasers can allude to lists

of things to get on any E-Commerce site to better comprehend what to purchase

Page 33: WEB APPLICATION USING PHP AND MYSQL

23

2.2.2.4 LOGIN/LOGOUT –

This link is most important aspect of any E-Commerce website as it allow any user to

get access to the restricted areas of the website and just start doing shopping or sell

products or advertise. Once a user has done with any of the mention activity he might

not be interested to browse on website and can simply logout to close the session

created. A user can simply login by registering using an email address or just by Social

Login from mentioned Social Media Networks.

Source – Rarst.net CC-BY-SA

Figure 2.6 – Internal structure of functioning of the website

Page 34: WEB APPLICATION USING PHP AND MYSQL

24

2.2.3 SEARCH A PRODUCT

It is an important aspect as it helps a user in searching any product which he/she needs directly

instead of exploring the whole website. For searching, a user enters the required product name

and that product with some related products comes down in the form of a list.

The searching uses the AJAX technology, which is renowned for the method of exchanging

data with a server and updating parts of a webpage without reloading the entire page.

Figure 2.7 – WordPress Query Structure to be used in search in the website

Page 35: WEB APPLICATION USING PHP AND MYSQL

25

2.2.4 PRODUCT DETAILS

There are many features in product details in the solution provided. These are -

2.2.4.1 QUICK VIEW: It helps to quickly view important features of the product and add

directly to the cart and the required quantity and moved to view the cart.

2.2.4.2 FULL DETAILS: It helps to view all the details, recommended products, grouped

products, related items, description and reviews provided. One can also add the items to their

WISHLIST here.

2.2.4.3 COMPARE WITH OTHER PRODUCT: It helps to compare different products

with respect to different / common features like manufacturer name, warranty, special features

etc..

2.2.4.4 DESCRIPTION AND PRODUCT REVIEW: Description describes the product

qualities in details. It explains the major strength about the product and also in which

category the product exists. Product Review just help other people to give there review about

the product and the feedback received. It helps the buyer to know about the performance of

the product when it has been used by the public. One can rate the product performance from 1

(poor performance) to 5 (excellent performance).

2.2.4.5 PRODUCT CATEGORIES AND RANGES - Product categories are more specific

then ranges. Categories act as parent element to product ranges / tags.

Figure – 2.8 (a) – Cloud Diagram showing Product Categories

Figure – 2.8 (b) – Cloud diagram showing Product Ranges

Page 36: WEB APPLICATION USING PHP AND MYSQL

26

2.2.5 PAYMENT METHODS:

It comprises of all the payment options which user can select to order a product. There are

various options for payment like cash on delivery, direct bank transfer, cheque payment,

Credit card, etc.

Direct Bank Transfer – Customers have to make payment directly into the bank

account. With the use of their Order ID as the payment reference. The order won’t be

shipped until the funds have cleared in the seller account.

Cheque Payment – In this user are requested to send the cheque to Store Name, Store

Street, Store Town, Store State / County, Store Postcode.

Cash on Delivery - Pay with cash upon delivery.

Authorize.net Payment – It allows the users to pay using the Authorize.net network

services using plastic money.

2.2.6 SUBMIT YOUR PRODUCT –

This segment of the website is important for those customers who want to sell their items. After

entering few information about the seller and the product itself, users would be able to sell their

items and can generate profits, by giving a minimal commission to the site.

Major components of the information provided by users are -

Table 2.3 - User Details and their description for advertising or selling their own products

Name Name of the vendor/user advertising or

selling its product

Email Email of the same person

Product title Name of the Product

Product Tags Special features associated with the product

like company name,

Product Category By default, chosen as uncategorized

Upload Product Image Maximum of five images are allowed to

attached as product image

Product Description A summary about the product, its details

and important qualities and features.

Estimate Price Price of the product user want to sell at

Page 37: WEB APPLICATION USING PHP AND MYSQL

27

Figure 2.9 – Workflow after adding a product to cart, which explains checkout, coupons,

payments, shipping, tracking and delivery confirmation.

1. WELCOME 2.ADDRESS 3. PAYMENT 4. CONFIRMATION

Financial System

CRM System Payment Gateways

Shipping Gateways

Inventory/Warehouses Customer Services

5. Order

Created

2. Start

Checkout 3. Add

Address

4. Add

Payment

6. Order

Processing,

Inventory

Check,

Shipment

Split

7.

Shipment

Released

Website

Shopping

1. Cart

Created

Manual order

Management

10. Returns

/Exchanges

8. Add to

Picklist

9. Order

Completed/

Shipped

Tracking

Packing Slip

Order

Confirmation

Page 38: WEB APPLICATION USING PHP AND MYSQL

28

Source - https://codex.wordpress.org/Database_Description/

Figure 2.9 – Workflow for safely upgrading WordPress engine.

Page 39: WEB APPLICATION USING PHP AND MYSQL

29

2.2.7 PLUGINS USED WITH COLLEGEHAAT

Figure 2.10 – WordPress Core and Plugins working

Page 40: WEB APPLICATION USING PHP AND MYSQL

30

2.2.7.1 WORDPRESS PLUGINS

Akismet

Utilized by millions, Akismet is conceivably the most ideal route on the planet to shield any

WordPress website from remark and trackback spam. It keeps the site shielded from spam even

while one rest.

Custom Sidebars

Custom Sidebars allows WordPress developers to create widgetized areas and custom sidebars.

It replace whole sidebars or single widgets for specific posts and pages.

Quick Contact Form

A really, really simple contact form. There is nothing to configure it this plugin, just after

adding the developers email address and it's ready to go. But then we have access to a huge

range of easy to use features.

Revolution Slider

Revolution Slider -Premium Responsive slider. Revolution Slider is an innovative, responsive

WordPress Slider Plugin that displays the content in very beautiful way. Whether it's a Slider,

Carousel, Hero Scene or even a whole Front Page, the visual, drag & drop editor will let us

tell our own stories in no time.

Visual Composer

This plugin is a drag and drop plugin with both frontend and backend editors. Visual Composer

page builder plugin for WordPress take full control over the WordPress site with Frontend and

Backend editors. It helps to build any layout one can imagine with drag and drop page builder

plugin. It require no programming knowledge. Visual Composer also comes premium add-on

elements like Icon, Info Box, Interactive Banner, Flip Box, and Info List & Counter. It also

provides a Font Icon Manager allowing users to upload / delete custom icon fonts. It

User Submitted Posts

Enables the site visitors to submit posts and images from anywhere on the site

Page 41: WEB APPLICATION USING PHP AND MYSQL

31

WooCommerce

An E-Commerce toolkit that helps us to sell anything. The world's favourite E-Commerce

solution that gives complete control to sell anything. WooCommerce is now the most popular

E-Commerce platform on the web, so any developer can rest assured they're in good company.

2.2.7.2 YIT PLUGINS

Advanced Reviews

Advance Reviews plugin extends the basic functionality of WooCommerce reviews and add a

histogram table to the reviews of the products, as well as to see in most trendy e- commerce

way.

It adds a histogram table to the reviews of the products received by various consumers and

reviewers, as we see in most trendy E-Commerce sites, and give users the possibility to attach

images to their reviews. Therefore it helps to keep up-to-date about most trendy products. Also

it provide the new facilities to manage an advanced review system.

Product Slider Carousel

YITH WooCommerce Product Slider Carousel allows us to create responsive product sliders.

It makes products visible in the shop in a tidy and professional way using a product slider that

one can locate in strategic spots of the site to move customer’s curiosity and increase sales.

With YITH WooCommerce Product Slider Carousel one can show more products at the same

time and let them scroll automatically, so that users can see them all. It is a modern and versatile

feature that cannot miss in a professional shop.

Review Reminder

Allows developers to send a reminder to customers with an invitation to do a review of the

items purchased. YITH Woocommerce Review Reminder allows us to send, after 7 days the

order status is set to "Completed", a reminder to customers with an invitation to make a review

of the items purchased.

Ajax Search

YITH WooCommerce Ajax Search allows our users to search products in real time. It helps to

improve user experience, which indirectly improve our sales.

Page 42: WEB APPLICATION USING PHP AND MYSQL

32

YITH WooCommerce Ajax Search is a very easy-to-use plugin for WooCommerce. One just

need to install it and it's ready to work. It creates a simple search box that shows users the

instant search results, by suggesting the products from the WooCommerce store that matches

our searching criteria.

It is very useful to assist our users while they are trying to search any product in the website.

Users can just enter a keyword for the WooCommerce product they are looking for and YITH

WooCommerce Ajax Search will spare them the nuisance to browse all WooCommerce

categories one at a time. Just by starting to write the key phrase a list of useful suggestion will

be shown to the user and the more one write, the more accurate search results will be. At that

point, one will only need to choose what one need.

Cart Messages

The YITH Woocommerce Cart Messages plugin let developers to add custom messages in the

cart page and/or in the checkout page. It helps to improve the user experience and improve our

sales. In this plugin we can use the simple message about the products in cart and the categories

related to them which is provided as cart messages.

Request a Quote

The YITH Woocommerce Request a Quote plugin lets customers to ask for an estimate of a

list of products they are interested into.

Aurhorize.net

YITH Authorize.net allows our users to pay using the Authorize.net network services. It

requires WooCommerce to work.

YITH Authorize.net Payment Gateway extends the WooCommerce default payment modes,

adding the possibility to pay with credit cards through the services offered by the Authorize.net

network. A system that indeed includes an amount of reliability, with the guarantee that the

purchase process will not be stopped by lost payments. In addition, research have proved that

the more payment methods are available on your website, the more website's reliability is

improved: this means that adding credit card will persuade more in choosing your shop to

purchase.

Page 43: WEB APPLICATION USING PHP AND MYSQL

33

Catalog Mode

YITH WooCommerce Catalog Mode, a plugin for disabling sales in the E-Commerce and turn

it into an E-Commerce into an online catalogue.

YITH WooCommerce Catalog Mode is one of the most appealing plugins for WordPress and

WooCommerce users who need to switch their WooCommerce site into an online catalogue

for some time. Reasons for this switch may be a thousand, but most common ones are

concerned with the need of developers to perform maintenance actions in the warehouse

without putting their site offline. A catalogue gives us the opportunity to leave the

WooCommerce products online and to let customers contact us anyway for whatever question

they might have. This increases customers' loyalty and one do not lose visibility online. It helps

from a potential customers lost. Without putting WooCommerce shop down, one can have a

look on the inventory by changing E-Commerce into an online catalogue.

Order Tracking

Order Tracking helps to add an easy tool to manage order shipping information of the shop and

to notify the customers about the shipping.

YITH Woocommerce Order Tracking is a WordPress plugin that allows developers to manage

easily shipping information concerning with orders and that lets our customers be notified

about their order shipping. The seller can give user the information about how long the product

will take to be delivered, but as a user, we are not sure about where it is until it arrives. What

one need is something informing us about the packet, a tracking tool that WooCommerce

unfortunately does not adds automatically to a shop? This is exactly what YITH

WooCommerce Order Tracking allows users to do, tracking the delivery of the watches,

clothes, books or whatever WooCommerce product one have ordered. This is a very useful tool

to make WooCommerce shop as complete as possible and offer our customers the best services.

Customers feel that we care for them and they feel safe: this will certainly make sales in our

WooCommerce shop increase dramatically.

Page 44: WEB APPLICATION USING PHP AND MYSQL

34

Pdf Invoice

It help directly by creating and sending PDF receipts and delivery rundown archives for Woo

Commerce orders by means of email.

This Woo Commerce plugin permits making PDF receipts and transportation rundown archives

for Woo Commerce arranges rapidly and effortlessly with adaptable layouts. One can also pick

these PDF documents if producing receipts physically or consequently utilizing custom number

configuration and send it as email connection to the clients.

Social Plugin

YITH Woo Commerce Social login is a plugin that permits users to login to e-business site

through their Facebook or Twitter or Google account. YITH Woo Commerce Social Login, a

plugin that permits the potential clients to get connected to e-business site through their

Facebook, Twitter or Google+ account. A simple action, that yet make life and shop

management much easier, users feel more comfortable in accessing website, login is just a click

far and their propensity to purchase becomes much higher. Research prove that three quarters

of users prefer social login to registration forms and this increases conversion rates and

therefore also sales.

Wishlist

YITH Woo Commerce Wish list add all Wish list elements to the website. It needs Woo

Commerce to work. What can truly have the effect in changes and measure of offers is

unmistakably the opportunity to share our own particular list of things to get, even on

interpersonal organization and expanding roundabout deals. One is able to envision the

business volume he can produce amid occasions or birthdays, when relatives and companions

will be searching for the list of things to get of customers to purchase a present.

It offer guests visitors, an opportunity to include the results of any other users woo commerce

store to a list of things to get page. With YITH Woo Commerce Wish list one can include a

connection in every item detail page, keeping in mind the end goal to add the items to the list

of things to get page. The plugin will take user to the particular page and the items will be

included in this page and a short time later one add them to the truck or can evacuate them.

Page 45: WEB APPLICATION USING PHP AND MYSQL

35

Zoom magnifier

YITH Woo Commerce Zoom Magnifier add zoom impact to item pictures and an adjustable

picture slider. It serves to enhance client experience and enhance the deals.

For guest’s visitors it offers an opportunity to examine in detail the nature of the items. With

YITH Woo Commerce Zoom Magnifier developers can add a zoom impact to all the item

pictures. The WordPress plugin additionally includes a slider underneath the highlighted

picture with the item display pictures.

Multi-Vender

YITH Woo Commerce Multi-Vendor is a plugin developed to switch the website into a

platform hosting more than one shop, like a multivendor marketplace.

We can convert our WooCommerce website into a marketplace where one can host many

vendor pages and earn commissions from their sales. YITH WooCommerce Multi-Vendor is

the WooCommerce plugin explicitly developed to switch WooCommerce website into a

multivendor platform that will let us earn from commissions without having to lift a finger.

Moreover a multivendor shop brings more traffic to the site and allows us to get a better engine

search positioning. A double, huge benefit from a single WmaooCommerce plugin. And all

free.

Infinite Scrolling

This plugin add infinite scrolling to archive post or shop page. People have become used to see

contents online in a sequential way, think about Facebook or Twitter, two navigation systems

that now influence how we browse the web. People want everything all right away starting

from top to infinite scroll.

With YITH Infinite Scrolling, one can decide to apply this idea for an immediate and direct

consultation of the page contents. No more loading times caused by the change of the page,

well, no more pages for a unique category of elements. Everything will come in a single

solution, where users, even from a mobile device, will be able to simply scroll down and get

the details they seek right away, without being afraid to lose them loading a new page.

Page 46: WEB APPLICATION USING PHP AND MYSQL

36

Live Chat

YITH Live Chat, an exceptional plugin to make clients feel comfortable as in a physical shop.

They can ask for information and get immediate feedback which can

make our client comfortable as they are in a physical shop

Users need human contact and YITH Live Chat can help them in overcoming the obstacle of

the purchase doubts. Immediate and performing, users will feel just like they are purchasing in

a physical store with this chat. No more time wasted waiting for an answer. A direct contact

for a rapid purchase.

Main features of Live Chat are -

Customization of the messages (welcome, greetings, offline, busy operators)

Availability of different tabs, multiple chats

YITH Maintenance Mode

YITH Maintenance Mode allows us to add a maintenance page and customize it.

Page 47: WEB APPLICATION USING PHP AND MYSQL

37

2.2.8 DATABASE SNAPSHOTS

Stores Information Regarding all the user’s account and its details.

Table 2.4: Table showing information of registered users

Table 2.5: Showing all tables in our database like comments, sliders, users, links, comments

etc.

Page 48: WEB APPLICATION USING PHP AND MYSQL

38

2.2.9 E-R DIAGRAM:

Elements in a database are represented by data entries. Data entries represent Entities which

are data objects, e.g., students, courses and instructors. Relationships among entities are

represented by E-R model i.e., entity-relationship diagram e.g., - students take

courses, instructors teach courses. ER model: model data using entities and relationships.

2.2.9.1 E-R MODEL - (WORDPRESS)

Figure 2.11 – E-R Diagram of WordPress

Page 49: WEB APPLICATION USING PHP AND MYSQL

39

2.2.9.2 ER MODEL – (WEBSITE)

Figure 2.12 – E-R Diagram of all the entities related to our website like suppliers, product,

orders, users, payments etc..

Page 50: WEB APPLICATION USING PHP AND MYSQL

40

CHAPTER 3

RESULTS AND DISCUSSION

The end product of our project is a web based application using PHP and MySQL which is a

platform to sell used items within an institute at a very nominal price.

It has the following features:

It allows a user to register/login into the website so that a user can have its own

personal account so that he/she can login whenever required.

The product are categorized according to the categories like electronics items, books,

etc. Users can also use a search bar to search any particular product directly.

There is a facility to view the product directly as well as user can view the product via

different angles.

There is an option of adding a product to cart so that user can view the list of all of its

item in his cart at the time of checkout.

It also provide various types of payment options such as via credit/debit card, cash on

delivery, etc.

Page 51: WEB APPLICATION USING PHP AND MYSQL

41

CHAPTER 4

CONCLUSION

4.1 CONCLUSION

A key result of the innovation upset in India has been availability, which has fuelled

uncommon access to data. The e-commerce business in India might right now be behind its

partners in various created nations and even some developing markets. On the other hand,

with India's GDP development pegged at 6.4% by the International Monetary Fund and the

World Bank, it is anticipated that would grow quickly.

Also, the Indian e-commerce industry has entry to finances from inside of the nation and

global financial specialists. By and large, the e-commerce division is developing and a

number of genuine players are entering the business sector.

In India the piece of the pie is isolated amongst a few e-commerce organizations, each

concocting its own plan of action. Subsequently, clients have an extensive variety of items

and administrations to look over.

4.2 FUTURE WORK

This gist of online shopping is set to see greater heights in coming years. E-Commerce has

changed the way business approach globalisation. Businesses are leaning towards international

Financial Reporting Standards (IFRS), and internet financial reporting, while the former is a

global standard for accounting and financial reporting, the later has been extremely helpful to

E-Commerce companies.

CollegeHaat can be expanded in all over the institutes of India mainly like IIT’s, NIT’s,

different universities, etc. This concept of CollegeHaat can also be used by some of the

websites like OLX, QUIKR who can add the option for buying and selling of goods at an inter

college level.

As most of the big E-Commerce websites are moving toward mobile platform. CollegeHaat

can also be brought to mobile platform by developing the application of CollegeHaat for

android, windows and iOS platforms. As the number of mobile users are increasing at a very

huge rate it is important to bring CollegeHaat to mobile platform also.

Page 52: WEB APPLICATION USING PHP AND MYSQL

42

REFERENCES:

[1] http://www.quora.com , Design details and technologies used for the development of

website.

[2] Jitesh Bijlani, and Sangeeta Singh, “e-Commerce in India, Accelerating growth”,

pwc.in, 2015

[3] http://www.w3schools.com , HTTP server and word press details.

[4] http://www.israeldepot.com/wp-content/plugins/yith-woocommerce-social

login/README.txt , YITH WooCommerce Social Login.

[5] https://yithemes.com/themes/plugins/yith-woocommerce-authorize-net-payment-

gateway/ , YITH WooCommerce Authorize.net Payment Gateway.

[6] http://www.theitaliancousins.se/wp-content/plugins/yith-woocommerce-ajax-

search/README.txt , YITH WooCommerce Ajax Search.

[7] https://ka.wordpress.org/plugins/yith-woocommerce-cart-messages/

, YITH WooCommerce Cart Messages.

[8] http://docslide.us/documents/e-commerce-in-india-evolution-growth-and-challenges-

55844a0a7f5c9.html , MSLgroup, e-commerce in India: evolution, growth and challenges

[9] E. Althammer and W. Pree C. Doppler, “Design and implementation of a MVC-based

architecture for ecommerce applications”, Lab for software research university of Constance

Campus, Germany.

[10] http://www.rarst.net/wordpress/wordpress-query-functions/, Make sense of WordPress

query functions

Page 53: WEB APPLICATION USING PHP AND MYSQL

43

[11] http://www.rarst.net/wordpress/wordpress-core-load/, Make sense of WordPress core

load.

[12] https://www.drupal.org/node/1175694, Report from the University of Minnesota Drupal

Usability Testing.

[13] http://stackoverflow.com/questions/2857143/is-wordpress-mvc-compliant, Is WordPress

MVC compliant.

Page 54: WEB APPLICATION USING PHP AND MYSQL

44

APPENDIX 1

(Appendix) Figure – 1.1 Home page of solution provided

(Appendix) Figure – 1.2 Page showing User Account Details

Page 55: WEB APPLICATION USING PHP AND MYSQL

45

(Appendix) Figure – 1.3 Database showing list of Products

(Appendix) Figure – 1.4 Web page showing all the products

Page 56: WEB APPLICATION USING PHP AND MYSQL

46

(Appendix) Figure – 1.5 Page showing Product Details in Detailed View

(Appendix) Figure – 1.6 Page showing Product Details in Quick View

Page 57: WEB APPLICATION USING PHP AND MYSQL

47

(Appendix) Figure – 1.7 Website Footer – showing categories, ranges, cart and enquiry

form.

(Appendix) Figure – 1.8 AJAX Search, recommending search results on based of keywords

provided

Page 58: WEB APPLICATION USING PHP AND MYSQL

48

(Appendix) Figure – 1.9 Chat view from the side of chat operator.

(Appendix) Figure – 1.10 Chat UI for clients / customers


Recommended