An open API service indexing awesome lists of open source software.

https://github.com/raghav714/opinion-poll

assessment assignment of Axelrant for position of GET-2020
https://github.com/raghav714/opinion-poll

Last synced: 2 months ago
JSON representation

assessment assignment of Axelrant for position of GET-2020

Awesome Lists containing this project

README

        

# Opinion-poll
- [x] Structuring code in OOPS paradigm
- [x] Showing results in a pie chart.
## Install and Enable Apache2, PHP, MySQL
$ sudo apt update && upgrade
$ sudo apt install apache2
$ sudo apt install php libapache2-mod-php php-mysql
## Technology Used
PHP, MySQL and JavaScript
## Creating Database
create database poll;
## Creating Table
create table author_poll (`id` int(11) NOT NULL AUTO_INCREMENT,`choice` tinyint(4) NOT NULL DEFAULT '0',`ts` timestamp NULL DEFAULT NULL,PRIMARY KEY (`id`));
## Description of Files
• database.sql -> This file consist of MySQL Query to create Database and Table.
• db_fn.php -> This file is used to create the MySQL operation function to develop the OOPS paradigm.
• display.php -> This is used to display the Result in the Pie Chart Format.
• opinion.php -> This is used to Poll form.
## Run the System
$ sudo /etc/init.d/apache2 restart (Start the Apache2 server)
• Copy the Unzip Repositry to '/var/www/html/' location
• Open any Browser and type the address 'http://localhost/opinion.php'
## Screenshots
![Poll-1](https://user-images.githubusercontent.com/29707542/68994517-e99b8480-08a9-11ea-9ddc-e20b39902c6e.png)
![poll-2](https://user-images.githubusercontent.com/29707542/68994510-d4bef100-08a9-11ea-8388-2d5c7ce0804d.png)