Skip to content

Online Learning Platform Stack: PHP, MySQL, JavaScript An online learning management system for creating and managing courses, with features like quizzes and progress tracking.

Notifications You must be signed in to change notification settings

zdemirgithub/online-learning-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

1. Setting Up MySQL Database

SQL Script to Create Database and Tables

CREATE DATABASE online_learning_platform;

USE online_learning_platform;

CREATE TABLE users (
  id INT AUTO_INCREMENT PRIMARY KEY,
  name VARCHAR(100) NOT NULL,
  email VARCHAR(100) UNIQUE NOT NULL,
  password VARCHAR(255) NOT NULL,
  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

CREATE TABLE courses (
  id INT AUTO_INCREMENT PRIMARY KEY,
  title VARCHAR(255) NOT NULL,
  description TEXT NOT NULL,
  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

CREATE TABLE quizzes (
  id INT AUTO_INCREMENT PRIMARY KEY,
  course_id INT NOT NULL,
  question TEXT NOT NULL,
  option_a VARCHAR(255) NOT NULL,
  option_b VARCHAR(255) NOT NULL,
  option_c VARCHAR(255) NOT NULL,
  option_d VARCHAR(255) NOT NULL,
  correct_option CHAR(1) NOT NULL,
  FOREIGN KEY (course_id) REFERENCES courses(id) ON DELETE CASCADE
);

About

Online Learning Platform Stack: PHP, MySQL, JavaScript An online learning management system for creating and managing courses, with features like quizzes and progress tracking.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages