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
- Host: GitHub
- URL: https://github.com/raghav714/opinion-poll
- Owner: Raghav714
- Created: 2019-11-16T13:46:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-27T17:07:58.000Z (over 5 years ago)
- Last Synced: 2025-01-22T02:27:02.643Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 372 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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

