/Student_database-_Hosting-Raja-AJAX

Better Version of the assignment for the developer trainee

Primary LanguagePHP

AJAX Implementation for Editing Student Details

This repository contains the implementation of AJAX (Asynchronous JavaScript and XML) for editing student details in a web application. The application allows users to edit various details of a student's profile, such as their full name, phone number, date of birth, mother tongue, etc., using AJAX to submit form data asynchronously without reloading the page.

Table of Contents

Features

  • Allows users to edit student details without page reload using AJAX.
  • Validates form inputs on the client-side before submitting data to the server.
  • Displays success or error messages based on the server's response.

Prerequisites

To run this application locally, you need the following:

  • Web server (e.g., Apache, Nginx)
  • PHP installed on the server
  • MySQL or any other relational database management system

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/aash-gates/Student_database-_Hosting-Raja-AJAX.git
    
  2. Configure your web server to serve the application from the cloned directory (ajax-student-details).

  3. Import the database schema provided in the database directory into your MySQL database.

  4. Update the database connection settings in the db_connect.php file to match your MySQL credentials.

Usage

  1. Access the application through your web browser.

  2. Log in with your credentials or sign up if you don't have an account.

  3. Navigate to the student details page where you can edit student information.

  4. Make changes to the student details and click the "Save" button.

  5. The changes will be submitted asynchronously using AJAX, and you will receive a success or error message based on the server's response.

File Structure

     ajax-student-details/
        │
        ├── css/
        │ └── styles.css
        │
        ├── database/
        │ └── schema.sql
        │
        ├── js/
        │ └── jquery.min.js
        │
        ├── process_edit_student.php
        │
        ├── README.md
        │
        ├── db_connect.php
        │
        ├── index.php
        │
        ├── student_details.php
        │
        └── dashboard.php

License

This project is licensed under the MIT License.