E-Learning System Using PHP/MySQLi with Source Code

Language

E-Learning System is a web-based system that aims to make the role of teachers easier in making their lessons, activities, and quizzes. The function of this is, the teacher can upload his lesson whether it’s a video or a pdf file. He can also set questions of quizzes or activities based on the lesson that he uploaded. The students need to create an account first so they can log-in and they can now view the lesson and take the quiz. And if the student already has an account he/she can access to download and view the videos/pdf files.

These are the following features of the system:

Admin Side

Lesson

  • List of Lessons
  • Upload Lesson
  • Edit Lesson
  • Change the File
  • View Lesson
  • Delete Lesson

Exercises

  • List of Question
  • Add Question
  • Edit Question
  • Delete Question

Student

  • List of Students

Manage Users

  • List of Users
  • Add User
  • Edit User
  • Delete User

Student side

  • Create Account
  • Login and Logout
  • View Lesson
  • Take Quizzes
  • Generate Score
  • Download Lessons

How to set up the E-Learning System in PHP with Source Code

  1. Download the zip file.
  2. Download and install XAMPP
  3. Run the XAMPP control panel and start MySQL and Apache
  4. Go to C:\xampp\htdocs and extract the downloaded zip file ( caiwl) inside the folder
  5. Open the browser and go to http://localhost/phpmyadmin/ to create the database
  6. Click the new to create a database.
  7. Name the database "dbcaiwl"
  8. Click Import to import the SQL file.
  9. Click choose file and select the dbcaiwl in the root folder of the source code
  10. Click go.

How to run E-Learning System in PHP with Source Code

Open the browser and go to :

http://localhost/caiwl/ - for Students

http://localhost/admin/ - for Admin

Accessing Admin Side

Username: janobe
Password: admin

For more information about the system, you can contact me @

Email – [email protected]
Mobile No. – 09305235027 – TNT

Or feel free to comment below.

This E-Learning System in PHP with Source Code is for educational purposes only. You can download it as a reference and expand your knowledge in making a system. You can freely modify it, according to your desire.

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

I can't connect to the database, the error prompt "Problem in selecting database! Contact administrator!" just when I set the password to null. But when I did not delete the password the error prompt like this: " (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\caiwl\include\database.php on line 19 Problem in database connection! Contact administrator". Pls help

In reply to by Demzzz (not verified)

Please remove the password in the config.php file

In reply to by Demzzz (not verified)

C:\xampp\htdocs\caiwl\include\database.php go to this file and edit ('localhost','root',' ','table name');

I cannot login using the username: janobe & pass: admin.

Warning: mysqli_connect(): (HY000/2002): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\xampp\htdocs\CAIWL\include\database.php on line 19 Problem in database connection! Contact administrator!

http://localhost/caiwl/admin/login.php use this url to open the admin side of the system and login the given details above.

I also cannot login using the username: janobe & pass: admin. Kindly advise. It show "Account does not exist! Please contact Administrator."

your idea is good and i am currently learning PHP. pls i need the login details for student

Warning: require_once(C:/xampp/htdocs\CAIWL\include\config.php): failed to open stream: No such file or directory in C:\xampp\htdocs\el\lms\E-Learning Management System\include\initialize.php on line 14 Fatal error: require_once(): Failed opening required 'C:/xampp/htdocs\CAIWL\include\config.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\el\lms\E-Learning Management System\include\initialize.php on line 14 I get the above error when i run this code..please help me sir.

thank you for sharing. i successfully run it and currently edit it to match my design n requirement. what ive done to run it same like janobe instructions: 1. install xampp 2. create dbcaiwl using localhost/phpmyadmin 3. access it at browser.. localhost/caiwl/login.php ------ for student...just create your account then play arround with it. 4. then use localhost/caiwl/admin/login.php to access admin view ----- this one use janobe/admin as told by janobe.... 5. easy right. 6. I use Visual Studio Code to edit the codes..... and just refresh the browser to view the results of edited codes.

Problem in selecting database! Contact administrator!

Not Found

The requested URL /caiwl/caiwl/login.php was not found on this server.

 

what ever you upload a video.same to same i did but it is getting like that and even css also not properly showing

 

i am using wamp server

In reply to by kdhanamjay

Careful with the directory folder naming. search the initialize.php under the include folder. defined('SITE_ROOT') ? null : define ('SITE_ROOT', $_SERVER['DOCUMENT_ROOT'].DS.'caiwl');

Warning: require_once(C:/xampp/htdocs\caiwl\include\config.php): failed to open stream: No such file or directory in C:\xampp\htdocs\E_SISPA\caiwl\caiwl\include\initialize.php on line 14 Fatal error: require_once(): Failed opening required 'C:/xampp/htdocs\caiwl\include\config.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\E_SISPA\caiwl\caiwl\include\initialize.php on line 14 please help me ;'(

Hello, first of all you did a great work here, but i think at admin side you should have shown exercises score

Hi, this is Manoj Indiran. I also workout this E-Learning portal, It's working. If you want my project with source code means, message me in what's app. I can help you, My project Cost is Rs.2000/- only. Thank you What's app number : 9600531670

IT showing error first fix this and the ask for sale Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in D:\Program Files\xampp1\htdocs\caiwl\include\database.php:14 Stack trace: #0 D:\Program Files\xampp1\htdocs\caiwl\include\database.php(130): Database->__construct() #1 D:\Program Files\xampp1\htdocs\caiwl\include\accounts.php(2): require_once('D:\\Program File...') #2 D:\Program Files\xampp1\htdocs\caiwl\include\initialize.php(17): require_once('D:\\Program File...') #3 D:\Program Files\xampp1\htdocs\caiwl\index.php(2): require_once('D:\\Program File...') #4 {main} thrown in D:\Program Files\xampp1\htdocs\caiwl\include\database.php on line 14

Notice: Trying to get property 'Answer' of non-object in C:\wamp64\www\caiwl\quizresult.php on line 34 This error is occurring when i open exercise section and click on submit

Sir, it;s not opening Not Found HTTP Error 404. The requested resource is not found.

In reply to by Badaru Abdulwa… (not verified)

It have searched wrongly on the brouser

Problem in database connection! Contact administrator! I have made changes in Config and Database file but still, error is the same as we upload on the live server the database is created as domainname_dbname so the given database doesn't work please help me how to connect on live server the database.

Warning: require_once(/storage/ssd5/476/18987476/public_html/caiwl/include/config.php): failed to open stream: No such file or directory in /storage/ssd5/476/18987476/public_html/include/initialize.php on line 14 Fatal error: require_once(): Failed opening required '/storage/ssd5/476/18987476/public_html/caiwl/include/config.php' (include_path='.:/usr/share/pear:/usr/share/php') in /storage/ssd5/476/18987476/public_html/include/initialize.php on line 14

The Application is working perfectly. You just to follow the Instructions given by Janobe.

Fatal error: __autoload() is no longer supported, use spl_autoload_register() instead in C:\xampp\htdocs\caiwl\include\function.php on line 37

Fatal error: __autoload() is no longer supported, use spl_autoload_register() instead in C:\xampp\htdocs\caiwl\include\function.php on line 37

Hello , I just setup everything and when I search http://localhost/caiwl/ on google there is the error Fatal error: Cannot redeclare spl_autoload_register() in C:\xampp\htdocs\caiwl\include\function.php on line 37 again when I try to enter in the admin site by searching http://localhost/admin/ The error is Not Found The requested URL was not found on this server. Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/8.1.12 Server at localhost Port 80 what to do now is this project exist now or changed??

In reply to by Ayan Barua (not verified)

did you find any solution for this? im facing same problem

Fatal error: __autoload() is no longer supported, use spl_autoload_register() instead in C:\xampp\htdocs\caiwl\include\function.php on line 37

Fatal error: __autoload() is no longer supported, use spl_autoload_register() instead in C:\xampp\htdocs\caiwl\include\function.php on line 37 this is my error can anyone help

you can change function __autoload(string $name) { } to : function autoloader(string $name) { } spl_autoload_register('autoloader'); for more details visit the link: https://lindevs.com/function-__autoload-has-been-removed-in-php-8-0/

need help ! Warning: require_once(C:/xampp/htdocs\caiwl\include\config.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\caiwl\caiwl\include\initialize.php on line 10 Fatal error: Uncaught Error: Failed opening required 'C:/xampp/htdocs\caiwl\include\config.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\caiwl\caiwl\include\initialize.php:10 Stack trace: #0 C:\xampp\htdocs\caiwl\caiwl\index.php(2): require_once() #1 {main} thrown in C:\xampp\htdocs\caiwl\caiwl\include\initialize.php on line 10

Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in C:\xampp\htdocs\caiwl\include\database.php:14 Stack trace: #0 C:\xampp\htdocs\caiwl\include\database.php(130): Database->__construct() #1 C:\xampp\htdocs\caiwl\include\accounts.php(2): require_once('C:\\xampp\\htdocs...') #2 C:\xampp\htdocs\caiwl\include\initialize.php(17): require_once('C:\\xampp\\htdocs...') #3 C:\xampp\htdocs\caiwl\index.php(2): require_once('C:\\xampp\\htdocs...') #4 {main} thrown in C:\xampp\htdocs\caiwl\include\database.php on line 14

Undefined variable $class_name in C:\xampp\htdocs\caiwl\include\function.php on line 38 The file .php could not be found. please rply me immedietly ,,,,,,

Fatal error: Uncaught Error: Call to undefined function __construct() in C:\xampp\htdocs\caiwl\include\database.php:130 Stack trace: #0 C:\xampp\htdocs\caiwl\include\accounts.php(2): require_once() #1 C:\xampp\htdocs\caiwl\include\initialize.php(17): require_once('C:\\xampp\\htdocs...') #2 C:\xampp\htdocs\caiwl\index.php(2): require_once('C:\\xampp\\htdocs...') #3 {main} thrown in C:\xampp\htdocs\caiwl\include\database.php on line 130

i keep geting this error Fatal error: Cannot redeclare spl_autoload_register() in C:\xampp\htdocs\caiwl\include\function.php on line 42

Warning: require_once(C:/xampp/htdocs/caiwl\include\config.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\caiwl\caiwl\include\initialize.php on line 17 Fatal error: Uncaught Error: Failed opening required 'C:/xampp/htdocs/caiwl\include\config.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\caiwl\caiwl\include\initialize.php:17 Stack trace: #0 C:\xampp\htdocs\caiwl\caiwl\index.php(2): require_once() #1 {main} thrown in C:\xampp\htdocs\caiwl\caiwl\include\initialize.php on line 17

This is email ([email protected] this is error i got when trying to setup "Fatal error: __autoload() is no longer supported, use spl_autoload_register() instead in C:\xampp\htdocs\caiwl\include\function.php on line 37" Contact me on whatsapps (2348111951740)

Add new comment