mah-shamim/php-mysql-quiz-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A web application for presenting questions with multiple types of options (image, text, file, video, link) and an answer. Built with HTML, jQuery, JSON, PHP, and MySQL.

  • Displays questions with various types of options.
  • Options can be text, images, videos, files, or links.
  • Users can select an option and receive feedback on their choice.
  • Data is dynamically loaded from a MySQL database using PHP.
  • index.html: The main HTML file for the application.
  • script.js: jQuery script for dynamic content and user interactions.
  • fetch_question.php: PHP script to fetch questions and options from the database.
  • questions.json: Example JSON file (if needed for development/testing).
  • images/: Directory for image files.
  • videos/: Directory for video files.
  • db/: Database scripts and schema.
  1. Clone the Repository

    git clone https://.com/yourusername/php-mysql-quiz-app.git
    cd php-mysql-quiz-app
  2. Set Up the Database

    • Import the database schema from db/create_tables.sql into your MySQL server.
  3. Configure PHP

    • Make sure to set up your PHP server to handle the fetch_question.php script.
    • Update the database connection details in fetch_question.php if needed.
  4. Run the Application

    • Open index.html in your web browser to view the application.

Feel free to submit issues or pull requests for improvements.

This project is licensed under the MIT License - see the LICENSE file for details.


### Steps to Create the Repository

1. **Create a New Repository:**
   - Go to  and create a new repository with the name `php-mysql-quiz-app`.

2. **Initialize Local Repository:**
   - Navigate to your project directory and run:
     ```sh
     git init
     git add .
     git commit -m "Initial commit"
     ```

3. **Add Remote and Push:**
   - Add your  repository as a remote and push your changes:
     ```sh
     git remote add origin https://.com/yourusername/php-mysql-quiz-app.git
     git push -u origin master
     ```

4. **Add Topics:**
   - Go to your  repository’s settings and add the topics listed above to help others discover your repository. 

By setting up your repository with these details, you'll provide clear information on the project and its structure, making it easier for others to understand, use, and contribute to your application.