{"id":1178,"date":"2021-12-22T13:22:53","date_gmt":"2021-12-22T13:22:53","guid":{"rendered":"https:\/\/swatilathia.wordpress.com\/?page_id=1178"},"modified":"2023-02-25T06:24:40","modified_gmt":"2023-02-25T06:24:40","slug":"php-assignments","status":"publish","type":"page","link":"https:\/\/swatilathia.com\/?page_id=1178","title":{"rendered":"PHP Assignments"},"content":{"rendered":"<body>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69dd898e7d779\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69dd898e7d779\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/swatilathia.com\/?page_id=1178\/#Assignment_%E2%80%93_1\" >Assignment \u2013 1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/swatilathia.com\/?page_id=1178\/#Assignment_%E2%80%93_2\" >Assignment \u2013 2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/swatilathia.com\/?page_id=1178\/#Assignment_%E2%80%93_3\" >Assignment \u2013 3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/swatilathia.com\/?page_id=1178\/#Assignment_%E2%80%93_4\" >Assignment \u2013 4<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"has-text-align-center wp-block-heading\" id=\"assignment-1\"><span class=\"ez-toc-section\" id=\"Assignment_%E2%80%93_1\"><\/span><strong>Assignment \u2013 1<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"has-medium-font-size wp-block-list\">\n<li>Write a PHP script that displays your name entered by the user from the text box.<\/li>\n\n\n\n<li>Write a PHP script that performs arithmetic operations . Values must be entered by the user from the text box.<\/li>\n\n\n\n<li>Write a PHP script that uses while loop &amp; do while loop. Starting &amp; ending value of loop must be entered by user from text box.<\/li>\n\n\n\n<li>Write a PHP script that displays your name with the use of for loop.<\/li>\n\n\n\n<li>Write a PHP script that returns cube of a number given by user input using UDF.<\/li>\n\n\n\n<li>Write a PHP script that performs any 5 string functions.<\/li>\n\n\n\n<li>Write a PHP script that performs any 5 array functions.<\/li>\n\n\n\n<li>Write a PHP script that performs any 5 Math functions<\/li>\n\n\n\n<li>Write a PHP script that performs any 5 Date functions.<\/li>\n\n\n\n<li>Write a PHP script that displays current date(Date with suffix, Month name, Year, Day name) and the date before 1 year of the current date (Date with suffix, Month name, Year, Day name). <strong><em>For example: 5th January 2023, Thursday<\/em><\/strong><\/li>\n\n\n\n<li>Write a PHP script that performs any 5 File handling functions.<\/li>\n\n\n\n<li>Write a PHP script that uploads any type of file by user input and move it to another folder<\/li>\n\n\n\n<li>Write a PHP script that fetches data of a specified student from database using AJAX<\/li>\n\n\n\n<li>Write a jQuery that uses load, change, blur, click, dblclick and resize event.<\/li>\n\n\n\n<li>Write a PHP script of Login page using Session.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"has-text-align-center wp-block-heading\" id=\"assignment-2\"><span class=\"ez-toc-section\" id=\"Assignment_%E2%80%93_2\"><\/span><strong>Assignment \u2013 2<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"has-medium-font-size wp-block-list\">\n<li>Write a PHP script that inserts records into tbl_bookinfo.<br>Database : db_book<br>Tablename : tbl_bookinfo<br>Fields : book_id int primary key auto increment<br>            book_name varchar<br>            book_publication varchar<br>            book_price int<\/li>\n\n\n\n<li>Write a PHP script that displays all the records of tbl_bookinfo in tabular format<\/li>\n\n\n\n<li>Write a PHP script that deletes a record by bookid and then show rest of the records in tabular form<\/li>\n\n\n\n<li>Write a PHP script that updates a record by bookid and then show rest of the records in tabular form<\/li>\n<\/ol>\n\n\n\n<h2 class=\"has-text-align-center wp-block-heading\"><span class=\"ez-toc-section\" id=\"Assignment_%E2%80%93_3\"><\/span><strong>Assignment \u2013 3<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"has-medium-font-size wp-block-list\">\n<li>Create an HTML form and validate it : Student\u2019 First Name, Last Name, Date of Birth,  Address, Mobile Number, Email using regular expression<\/li>\n\n\n\n<li>Write a Script that creates a PHP cookie which stores user\u2019s firstname, lastname, mobile number in it from the HTML form<\/li>\n\n\n\n<li>Write a Script that displays below Pie Chart which shows the popularity of different social media using GD library functions<\/li>\n\n\n\n<li>Write a Script that displays a table of given integer entered by the user in tabular form<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/swatilathia.com\/wp-content\/uploads\/2023\/02\/image.png?resize=454%2C331&#038;ssl=1\" alt=\"\" class=\"wp-image-2691\" width=\"454\" height=\"331\" loading=\"lazy\" srcset=\"https:\/\/i0.wp.com\/swatilathia.com\/wp-content\/uploads\/2023\/02\/image.png?resize=300%2C220&amp;ssl=1 300w, https:\/\/i0.wp.com\/swatilathia.com\/wp-content\/uploads\/2023\/02\/image.png?zoom=2&amp;resize=454%2C331&amp;ssl=1 908w\" sizes=\"auto, (max-width: 454px) 100vw, 454px\" \/><figcaption class=\"wp-element-caption\">Pie Chart<\/figcaption><\/figure>\n\n\n\n<h2 class=\"has-text-align-center wp-block-heading\"><span class=\"ez-toc-section\" id=\"Assignment_%E2%80%93_4\"><\/span><strong>Assignment \u2013 4<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"has-medium-font-size wp-block-list\">\n<li>Write a PHP script that creates a Class to demonstrate private and public properties.<\/li>\n\n\n\n<li>Write a PHP script that creates a Class to demonstrate Constructor and Destructor.<\/li>\n\n\n\n<li>Write a PHP script that creates a Class to demonstrate Inheritance with private and protected members.<\/li>\n\n\n\n<li>Write a PHP script that creates a Student Class to demonstrate methods.<\/li>\n\n\n\n<li>\n<\/ol>\n<\/body>","protected":false},"excerpt":{"rendered":"<p>Assignment \u2013 1 Assignment \u2013 2 Assignment \u2013 3 Assignment \u2013 4<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"om_disable_all_campaigns":false,"footnotes":""},"class_list":["post-1178","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/swatilathia.com\/index.php?rest_route=\/wp\/v2\/pages\/1178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/swatilathia.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/swatilathia.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/swatilathia.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/swatilathia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1178"}],"version-history":[{"count":13,"href":"https:\/\/swatilathia.com\/index.php?rest_route=\/wp\/v2\/pages\/1178\/revisions"}],"predecessor-version":[{"id":2716,"href":"https:\/\/swatilathia.com\/index.php?rest_route=\/wp\/v2\/pages\/1178\/revisions\/2716"}],"wp:attachment":[{"href":"https:\/\/swatilathia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}