diff --git a/5th_Semester/Web_Technology/Lab3 (Javascript & XML)/11_json.html b/5th_Semester/Web_Technology/Lab3 (Javascript & XML)/11_json.html index b024c24..456eaa2 100644 --- a/5th_Semester/Web_Technology/Lab3 (Javascript & XML)/11_json.html +++ b/5th_Semester/Web_Technology/Lab3 (Javascript & XML)/11_json.html @@ -8,7 +8,7 @@ diff --git a/5th_Semester/Web_Technology/Lab3 (Javascript & XML)/README.md b/5th_Semester/Web_Technology/Lab3 (Javascript & XML)/README.md index 72dc1c0..a855902 100644 --- a/5th_Semester/Web_Technology/Lab3 (Javascript & XML)/README.md +++ b/5th_Semester/Web_Technology/Lab3 (Javascript & XML)/README.md @@ -1,4 +1,4 @@ -# Lab Assignment – V (JavaScript and XML) +# Lab Assignment – III (JavaScript and XML) 1. Illustrate with examples the concept of alert, confirm and popup boxes • [Code](1_alert_confirm_popup.html) diff --git a/5th_Semester/Web_Technology/Lab4 (PHP)/Connecting_to_database/4_edit.php b/5th_Semester/Web_Technology/Lab4 (PHP)/Connecting_to_database/4_edit.php index 1f8825e..cd3655b 100644 --- a/5th_Semester/Web_Technology/Lab4 (PHP)/Connecting_to_database/4_edit.php +++ b/5th_Semester/Web_Technology/Lab4 (PHP)/Connecting_to_database/4_edit.php @@ -1,8 +1,11 @@ " . mysqli_error($conn); } @@ -31,8 +34,8 @@
"> - - + "> + ">
diff --git a/5th_Semester/Web_Technology/Lab4 (PHP)/README.md b/5th_Semester/Web_Technology/Lab4 (PHP)/README.md index 17c527f..66e5fd5 100644 --- a/5th_Semester/Web_Technology/Lab4 (PHP)/README.md +++ b/5th_Semester/Web_Technology/Lab4 (PHP)/README.md @@ -1,21 +1,35 @@ # Lab Assignment – IV (PHP) -1. Write a simple PHP script that prints "Hello, PHP!" to the browser. -2. Declare variables of different data types (integer, float, string) and demonstrate the usage of constants in PHP. -3. Create a PHP program that uses if-else statements to check if a number is positive, negative, or zero. Utilize different operators for comparison. -4. Develop a function that calculates the average of an array of numbers. Test the function with various arrays. -5. Define a PHP class representing a "Book" with properties like title and author. Create objects of this class and display their attributes. -6. Design a simple HTML form with input fields. Create a PHP script that retrieves and displays the form data when submitted. -7. Enhance the previous form with PHP validation. Ensure that required fields are filled, and validate email addresses and make sure the phone number starts with 98 or 97 using regex -8. Implement PHP code that responds to a button click event on a form. Display a message when the button is clicked. -9. Create a PHP script that sets a cookie with user preferences.Retrieve and display this information on subsequent visits. -10. Build a form with various elements (textboxes, checkboxes, radio buttons). Use PHP to access and display the selected values. -11. Develop a PHP script that reads content from a text file, modifies it, and then writes the updated content back to the file. +1. Write a simple PHP script that prints "Hello, PHP!" to the browser • [Code](1_hello_php.php) + +2. Declare variables of different data types (integer, float, string) and demonstrate the usage of constants in PHP • [Code](2_variables.php) + +3. Create a PHP program that uses if-else statements to check if a number is positive, negative, or zero. Utilize different operators for comparison • [Code](3_if-else.php) + +4. Develop a function that calculates the average of an array of numbers. Test the function with various arrays • [Code](4_function.php) + +5. Define a PHP class representing a "Book" with properties like title and author. Create objects of this class and display their attributes. • [Code](5_class.php) + +6. Design a simple HTML form with input fields. Create a PHP script that retrieves and displays the form data when submitted. • [Code](6_form_retrieval.php) + +7. Enhance the previous form with PHP validation. Ensure that required fields are filled, and validate email addresses and make sure the phone number starts with 98 or 97 using regex • [Code](7_enhancement_of_6.php) + +8. Implement PHP code that responds to a button click event on a form. Display a message when the button is clicked • [Code](8_button_click.php) + +9. Create a PHP script that sets a cookie with user preferences.Retrieve and display this information on subsequent visits • [Code](9_cookies.php) + +10. Build a form with various elements (textboxes, checkboxes, radio buttons). Use PHP to access and display the selected values • [Code](10_form.php) + +11. Develop a PHP script that reads content from a text file, modifies it, and then writes the updated content back to the file • [Code](11_file.php) ## Lab 4.1 Connecting to database -1. Write PHP code to establish a connection to a MySQL database, including the necessary credentials. -2. Develop a PHP script to insert a new record into a MySQL database table.Ensure proper validation and sanitation of input data. -3. Create a PHP script that retrieves and displays all records from a MySQL database table. -4. Modify a specific record in a MySQL table using PHP. Ensure that the update is based on user input or specific criteria. -5. Implement PHP code to delete a record from a MySQL table. Provide options for the user to select the record to be delete +1. Write PHP code to establish a connection to a MySQL database, including the necessary credentials • [Code](Connecting_to_database/1_connection.php) + +2. Develop a PHP script to insert a new record into a MySQL database table.Ensure proper validation and sanitation of input data • [Code](Connecting_to_database/2_insert.php) + +3. Create a PHP script that retrieves and displays all records from a MySQL database table • [Code](Connecting_to_database/3_retrieve.php) + +4. Modify a specific record in a MySQL table using PHP. Ensure that the update is based on user input or specific criteria • [Code](Connecting_to_database/4_edit.php) + +5. Implement PHP code to delete a record from a MySQL table. Provide options for the user to select the record to be delete • [Code](Connecting_to_database/5_delete.php) diff --git a/5th_Semester/Web_Technology/Lab4 (PHP)/example.txt b/5th_Semester/Web_Technology/Lab4 (PHP)/example.txt deleted file mode 100644 index e69de29..0000000 diff --git a/README.md b/README.md index b1b8161..d050c8d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ## Description -This is a code repository for all the major lab codes necessary for CSIT students according to semester in subject-wise format, currently in 5th semester and is being updated. +This is a code repository for all the major lab codes necessary for CSIT students according to semester in subject-wise format, currently in 6th semester and is being updated. _Please feel free to update the codes as per needs and contribute to the repository._ @@ -47,6 +47,11 @@ _Please feel free to update the codes as per needs and contribute to the reposit - [Web Technology](/5th_Semester/Web_Technology/README.md) - [Cryptography](/5th_Semester/Cryptography/README.md) +## [6th Semester](/6th_Semester/README.md) + +- [Compiler Design](/6th_Semester/Compiler_Design/README.md) +- [Software Engineering](/6th_Semester/Software_Engineering/README.md) + ## Contributing 1. Fork it.