+
Skip to content

Raghav714/Opinion-poll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Opinion-poll

  • Structuring code in OOPS paradigm
  • 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 poll-2

About

assessment assignment of Axelrant for position of GET-2020

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载