Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 7.11 KB

exercise.md

File metadata and controls

46 lines (32 loc) · 7.11 KB

Stars Badge Forks Badge Pull Requests Badge Issues Badge GitHub contributors Visitors

Don't forget to hit the ⭐ if you like this repo.

PHP: Lab

PHP Lab is a collection of programming projects that provide hands-on experience in developing web applications using PHP and MySQL database. The lab covers a range of projects, from setting up the XAMPP server to developing full-scale applications such as Hospital Management System, Tourism Management System, and COVID19 Testing Management System. The projects also cover important topics such as PHP Intelephense and PHP Server, running PHP on Visual Studio Code, MySQL and image handling, and more. By working through these projects, users can gain valuable experience in PHP development and database management.

Lab Title Files
01 How to Install XAMPP Server on Windows 11
02 PHP Intelephense and PHP Server
03 How to run PHP on Visual Studio Code
04 Downloading and Placing msoWP and exercise Folders in htdocs

The lab exercise for basic PHP consists of various lessons covering topics such as syntax, variables, operators, conditional statements, loops, arrays, and functions. Each lesson focuses on specific subtopics and provides a result in the form of a link to the corresponding exercise file. The exercises involve practical tasks like understanding basic PHP syntax, writing comments, working with variables, utilizing operators, implementing conditional statements and loops, manipulating arrays, and creating functions with or without parameters. These exercises serve as hands-on practice to reinforce understanding and proficiency in PHP programming.

The lab exercise for PHP forms covers a range of topics. It begins with lessons on the POST and GET methods for sending form data, explaining their differences and usage. The lesson on the PHP $_REQUEST variable introduces an associative array that combines the contents of $_GET, $_POST, and $_COOKIE. The importance of sanitizing and validating form data for security purposes is emphasized in another lesson. Two practical examples are provided: a supply order form and a contact form that collects user feedback. Additionally, the exercise covers file upload functionality and the concept of including common files like headers or footers in multiple web pages.

The lab exercise for PHP and MySQL covers various topics related to interacting with a MySQL database using PHP. The lessons begin with connecting to the MySQL database server using the mysqli_connect() function and closing the connection using mysqli_close(). Creating a database and tables using SQL statements is explained, along with inserting data into the tables using the INSERT INTO statement. The exercise also covers prepared statements for secure SQL queries and retrieving the last inserted ID. Selecting data from tables, filtering records based on conditions, limiting result sets, ordering the result set, updating table data, and deleting records are also included.

The lab exercises for Chart.JS and Google Charts cover various chart types and their configurations. In Chart.JS, you can create bar charts, line charts, mixed charts, radar charts, and doughnut charts by specifying the chart type and configuring the appearance and colors of the chart elements. On the other hand, Google Charts offers pie charts, column charts, combo charts (with different marker types), bubble charts, scatter charts, organization charts, word trees, and dynamic charts that retrieve data from a database to display statistics visually. Each chart type has its unique features and can be customized to suit specific data visualization needs.

The table provides information about various lessons related to advanced PHP topics. Each row represents a different lesson and includes details such as the lesson number, topic, description, and a link to access the corresponding file. The topics covered range from shopping cart implementations to features like discount coupons, captcha usage, comments systems, and Trello-like drag and drop cards. The description for each lesson provides an overview of the functionality and purpose of the topic. The "Result" column includes a button with an icon and a link that allows users to access the respective lesson file. This table serves as a comprehensive reference for individuals interested in exploring advanced PHP concepts and implementing related features in their projects.

The complete project using PHP and MySQL consists of three different systems: Tourism Management System, Hospital Management System, and COVID19 Testing Management System. Each system has its respective files and directories containing the necessary code and resources for implementation. The Tourism Management System focuses on managing tourism-related activities, the Hospital Management System deals with the management of hospital operations, and the COVID19 Testing Management System handles the management of COVID19 testing procedures. These projects utilize PHP for server-side scripting and MySQL for database management, allowing for dynamic data handling and efficient system functionality.

Contribution 🛠️

Please create an Issue for any improvements, suggestions or errors in the content.

You can also contact me using Linkedin for any other queries or feedback.

Visitors