Skip to main content

Posts

Showing posts from February, 2025

Basic PHP AJAX MYSQL Exam Application System.

  An exam application is a software or web-based platform designed to facilitate the process of creating, managing, and conducting exams. These applications are commonly used by educational institutions, certification bodies, and businesses for assessments, quizzes, and tests. Functions of an Exam Application Exam Creation & Management Allows educators or administrators to design exams with various question formats (MCQs, essays, fill-in-the-blanks, etc.). Supports question banks for easy reuse and randomization. Candidate Registration & Authentication Manages student or candidate enrollment. Provides secure logins with authentication measures to prevent cheating. Scheduling & Notifications Enables scheduling of exams with specific time slots. Sends automated notifications and reminders to candidates. Online Exam Execution Supports different types of exams (objective, subjective, practical). Offers time management features like countdown tim...

PHP CRUD with custom Alert.

 Database structure: database:testing CREATE TABLE users (     id INT AUTO_INCREMENT PRIMARY KEY,     name VARCHAR(50) NOT NULL,     email VARCHAR(50) NOT NULL ); <?php // Database connection $host = 'localhost'; $dbname = 'testing'; $username = 'root'; $password = ''; try {     $conn = new PDO("mysql:host=$host;dbname=$dbname", $username, $password);     $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException $e) {     die("Database connection failed: " . $e->getMessage()); } // Initialize variables $name = $email = ''; $message = ''; $action = 'add'; // Default action $id = ''; // For update operation // Create (Insert) or Update if (isset($_POST['submit'])) {     $name = $_POST['name'];     $email = $_POST['email'];     if (!empty($name) && !empty($email)) {         if ($_POST['action'] === 'add') {       ...

100% Solution of XAMPP Server error mysql shutdown unexpectedly.

  100% Solution of XAMPP Server error mysql shutdown unexpectedly. step 1. go to xampp/mysql folder where we find a folder named data where we will have to do some changes.  first copy  the entire data folder and save it in a different name like prev-data that is why you may face data loss due to wrong operation. After go to the data folder and open it and delete the following folders and files. mysql performance schema aria_log.00000001 aria_log_control ib_buffer-pool ib_logfile0 ib_logfile1 ibdata1 ibtmp1 multi-mastar.info my mysql.pid mysql_error mysqld.dmp and delete all mysql-relay-bin files..... step 2 .After deleting all required files and folder go to xampp/mysql and open backup folder and copy the following files and folder and paste into the data folder.  mysql performance schema aria_log.00000001 aria_log_control ib_buffer-pool ib_logfile0 ib_logfile1 ibdata1 ibtmp1 multi-mastar.info my step 3 . After pasting the files and folder start the xampp server. no...