Forest FireĀ (100 Marks) Challenge 1: Forest fire You are camping in a forest area at night. You are living with the forest officers to experience their challenges and hardships to create a documentary on them. Everything was going well. Suddenly, a fire has broken out in the forest and it is expanding exponentially. There is […]
The Magic Wand – TechGig PHP answer, all test cases passed. Challenge #2
The Magic Wand – TechGig PHP answer – all testcases passed The Magic Wand (100 Marks) You are a wizard who possesses the magic wand that can be used to change the values of an array. Your wand has two powers: Increase and Decrease. With each use of the wand, you can either increase or decrease […]
PHP interview Questions and Answers
What is PHP? Answer: PHP stands for Hypertext Preprocessor. It is a widely used server-side scripting language primarily designed for web development. PHP code is embedded within HTML pages and executed on the server, generating dynamic content. Explain the difference between single quotes (”) and double quotes (“”) in PHP. Answer: Single quotes (”) treat […]
A Step-by-Step Guide on How to Install PHP
Install PHP : A Step-by-Step Guide on How to Install PHP Introduction: PHP is a widely used server-side scripting language that powers countless websites and web applications. Installing PHP on your local development environment or a web server is a crucial step in getting started with PHP development. In this guide, we will walk you […]
What is PHP? Understanding PHP: The Powerhouse of Web Development
Introduction: What is PHP? Understanding PHP: The Powerhouse of Web Development: In the world of web development, PHP stands tall as one of the most widely-used and influential scripting languages. From simple personal websites to complex enterprise applications, PHP has played a vital role in shaping the modern web. In this blog post, we will […]
JQuery Remove duplicate elements – Easy method
JQuery Remove duplicate elements: It’s very easy to remove duplicate elements from a list using jQuery. Demo: Let’s say we have below list: Here multiple duplicate values are there, Test 1, Test 3 and Test 2. Using jQuery we can easily remove them, refer the below code. seen is an object which maps any previously […]
jQuery sorting by price – Easy method(jQuery 3.x)
In this example let’s check how to do jQuery sorting by price in an easy way. Demo: Its a very important feature in ecommerce platforms to do sorting products by price or any other feature. We can do this very easily by jQuery. This example is completely with jQuery and no backend is used here. […]
Calculate sum of Datatable columns and display in footer – Easy method with sum()
In this example let’s check how to calculate sum of datatable columns (multiple columns) and display the same in footer. In some cases we may need to display the sum of datatable columns at the footer, for example total marks. We can display the whole total – means the sum of datatable columns without pagination […]
jQuery Datatable – Easy Steps
Here is simple example to create jQuery Datatable. jQuery Datatable organizes data in grid like format of rows and columns. It is very organized, interactive and intutive. jQuery provides plugin to create datatables very easily. Let’s check how jQuery datatables are done. FILES to include : CSS : – jQuery :- It is mandatory to […]
Complete Php form example
Here we are going to check how to create a php form and insert its values to database table. In this example we will be submitting the php form to same page. Form HTML : Here action is set to same page using <?php echo $_SERVER[‘PHP_SELF’]; ?>. Click here to know more abount PHP_SELF. Method […]