2024-07-11 13:04:55 +00:00
|
|
|
###################
|
|
|
|
What is CodeIgniter
|
|
|
|
###################
|
2024-07-12 09:57:41 +00:00
|
|
|
the Database required for this application
|
|
|
|
-- Users table
|
|
|
|
CREATE TABLE users (
|
|
|
|
user_id INT AUTO_INCREMENT PRIMARY KEY,
|
|
|
|
username VARCHAR(50) NOT NULL,
|
|
|
|
email VARCHAR(100) NOT NULL,
|
|
|
|
password_hash VARCHAR(255) NOT NULL,
|
|
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
|
|
|
);
|
|
|
|
|
|
|
|
-- Forms table
|
|
|
|
CREATE TABLE forms (
|
|
|
|
form_id INT AUTO_INCREMENT PRIMARY KEY,
|
|
|
|
user_id INT,
|
|
|
|
title VARCHAR(255) NOT NULL,
|
|
|
|
description TEXT,
|
|
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
|
|
FOREIGN KEY (user_id) REFERENCES Users(user_id)
|
|
|
|
);
|
|
|
|
|
|
|
|
-- Questions table
|
|
|
|
CREATE TABLE questions (
|
|
|
|
question_id INT AUTO_INCREMENT PRIMARY KEY,
|
|
|
|
form_id INT,
|
|
|
|
question_text TEXT NOT NULL,
|
|
|
|
question_type ENUM('multiple_choice', 'checkbox', 'short_answer') NOT NULL,
|
|
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
|
|
FOREIGN KEY (form_id) REFERENCES Forms(form_id)
|
|
|
|
);
|
|
|
|
|
|
|
|
-- Options table
|
|
|
|
CREATE TABLE options (
|
|
|
|
option_id INT AUTO_INCREMENT PRIMARY KEY,
|
|
|
|
question_id INT,
|
|
|
|
option_text VARCHAR(255) NOT NULL,
|
|
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
|
|
FOREIGN KEY (question_id) REFERENCES Questions(question_id)
|
|
|
|
);
|
|
|
|
|
|
|
|
-- Responses table
|
|
|
|
CREATE TABLE responses (
|
|
|
|
response_id INT AUTO_INCREMENT PRIMARY KEY,
|
|
|
|
form_id INT,
|
|
|
|
user_id INT,
|
|
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
|
|
FOREIGN KEY (form_id) REFERENCES Forms(form_id),
|
|
|
|
FOREIGN KEY (user_id) REFERENCES Users(user_id)
|
|
|
|
);
|
|
|
|
|
|
|
|
-- Response_Answers table
|
|
|
|
CREATE TABLE response_answers (
|
|
|
|
answer_id INT AUTO_INCREMENT PRIMARY KEY,
|
|
|
|
response_id INT,
|
|
|
|
question_id INT,
|
|
|
|
answer_text TEXT,
|
|
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
|
|
FOREIGN KEY (response_id) REFERENCES Responses(response_id),
|
|
|
|
FOREIGN KEY (question_id) REFERENCES Questions(question_id)
|
|
|
|
);
|
|
|
|
|
2024-07-11 13:04:55 +00:00
|
|
|
|
|
|
|
CodeIgniter is an Application Development Framework - a toolkit - for people
|
|
|
|
who build web sites using PHP. Its goal is to enable you to develop projects
|
|
|
|
much faster than you could if you were writing code from scratch, by providing
|
|
|
|
a rich set of libraries for commonly needed tasks, as well as a simple
|
|
|
|
interface and logical structure to access these libraries. CodeIgniter lets
|
|
|
|
you creatively focus on your project by minimizing the amount of code needed
|
|
|
|
for a given task.
|
|
|
|
|
|
|
|
*******************
|
|
|
|
Release Information
|
|
|
|
*******************
|
|
|
|
|
|
|
|
This repo contains in-development code for future releases. To download the
|
|
|
|
latest stable release please visit the `CodeIgniter Downloads
|
|
|
|
<https://codeigniter.com/download>`_ page.
|
|
|
|
|
|
|
|
**************************
|
|
|
|
Changelog and New Features
|
|
|
|
**************************
|
|
|
|
|
|
|
|
You can find a list of all changes for each release in the `user
|
|
|
|
guide change log <https://github.com/bcit-ci/CodeIgniter/blob/develop/user_guide_src/source/changelog.rst>`_.
|
|
|
|
|
|
|
|
*******************
|
|
|
|
Server Requirements
|
|
|
|
*******************
|
|
|
|
|
|
|
|
PHP version 5.6 or newer is recommended.
|
|
|
|
|
|
|
|
It should work on 5.3.7 as well, but we strongly advise you NOT to run
|
|
|
|
such old versions of PHP, because of potential security and performance
|
|
|
|
issues, as well as missing features.
|
|
|
|
|
|
|
|
************
|
|
|
|
Installation
|
|
|
|
************
|
|
|
|
|
|
|
|
Please see the `installation section <https://codeigniter.com/userguide3/installation/index.html>`_
|
|
|
|
of the CodeIgniter User Guide.
|
|
|
|
|
|
|
|
*******
|
|
|
|
License
|
|
|
|
*******
|
|
|
|
|
|
|
|
Please see the `license
|
|
|
|
agreement <https://github.com/bcit-ci/CodeIgniter/blob/develop/user_guide_src/source/license.rst>`_.
|
|
|
|
|
|
|
|
*********
|
|
|
|
Resources
|
|
|
|
*********
|
|
|
|
|
|
|
|
- `User Guide <https://codeigniter.com/docs>`_
|
|
|
|
- `Contributing Guide <https://github.com/bcit-ci/CodeIgniter/blob/develop/contributing.md>`_
|
|
|
|
- `Language File Translations <https://github.com/bcit-ci/codeigniter3-translations>`_
|
|
|
|
- `Community Forums <http://forum.codeigniter.com/>`_
|
|
|
|
- `Community Wiki <https://github.com/bcit-ci/CodeIgniter/wiki>`_
|
|
|
|
- `Community Slack Channel <https://codeigniterchat.slack.com>`_
|
|
|
|
|
|
|
|
Report security issues to our `Security Panel <mailto:security@codeigniter.com>`_
|
|
|
|
or via our `page on HackerOne <https://hackerone.com/codeigniter>`_, thank you.
|
|
|
|
|
|
|
|
***************
|
|
|
|
Acknowledgement
|
|
|
|
***************
|
|
|
|
|
|
|
|
The CodeIgniter team would like to thank EllisLab, all the
|
|
|
|
contributors to the CodeIgniter project and you, the CodeIgniter user.
|