JavaScript else if and if-else both are conditional statements are used to do different tasks based on a given condition.

Basically, JavaScript has multiple types of conditional statements which we use according to our task at the time of web development. There is 4 type of conditional statement in JavaScript.

Introduction to JavaScript else if Statement

else if Statement mainly executes the block of code when specified if condition returns false.

Syntax of JS else if Statement

if (expression 1) {
Statement(s) to be executed if expression 1 is true
} else if (expression 2) {
Statement(s) to be executed if expression 2 is true and expression 1 is false
} else if (expression…


To Auto Scroll Down on Page Load using jQuery, we use $( document ).ready() that helps us to check the page Document Object Model (DOM) is ready or not to execute the JavaScript code.

Generally, the document ready function is used to check the complete web page load and then execute the user’s JavaScript code.

Auto Scroll Down on Page Load Using jQuery

Here is the complete code to do auto-scroll functionality on your web page,

jQuery(document).ready(function(){
jQuery(‘body,html’).animate({scrollTop: 200}, 800);
})

Note: Make sure you have already included the jQuery CDN library.

  • On the above code first, we use the document read function to check the complete page…


Live Demo: https://phpcoder.tech/download-html-page-as-pdf-using-javascript/#Live_Demo_To_Generate_PDF_From_HTML_Using_JavaScript

To store dynamic content from the web page or HTML page for future use PDF format is very helpful. This also can help download a big amount of data from the web application by export an HTML page to PDF on the user’s click event using JavaScript functionality. To Download HTML Page as PDF Using JavaScript, JavaScript has a huge amount of libraries available to generate PDF from HTML. But here we use jsPDF which is the best JavaScript library to convert and download HTML pages as PDF using JavaScript.

Download HTML Page as PDF Using JavaScript

Here, In this tutorial, we will show…


To start programming with PHP is one of the parts of web development skills and installing PHP In on your Windows 10 machine considered as the first step of learning PHP skill using a local machine. Here we discuss the various method to Install PHP In Windows 10 OS.

  • Install PHP in Windows OS using the PHP development environment.
  • Manually install PHP by PHP official file Setup.

Install PHP in Windows 10 OS using XAMPP

According to my personal experience, on the time of beginner in PHP development, I always prefer XAMPP as my local server to run PHP files and also do project work. XAMPP stands for…


Originally at: Best YouTube Channels For Programming in 2021 — PHPCODER.TECH

In this article, we will talk about the list of Best YouTube Channels For Programming in 2021 in Hindi and English which are also my personal favorites. You can also suggest any other YouTube Channels in comments which may help others to more deep about programming or coding.

We discussed top YouTube Channels for learn coding in two parts,

  1. Top 10 Best YouTube Channels For Programming in Hindi
  2. Second is, Top 5 YouTube Channels For Coding in English

Top 10 Best YouTube Channels For Programming in Hindi

The top 10 list is not rank vise, all 10 channels…


Read it completely from here: https://phpcoder.tech/php-crud-operation-using-mysqli-source-code/

We develop a simple core PHP CRUD Operation Using MySQLi With example source code. Which you use to learn PHP basics very quick and easy way. Here I will show you Create, read, update and delete operation with image uploading.

Anyone want a complete file in ZIP Check comment below.

So from here, we have started the code by creating a PHP MySQLi connection file, see the below code and if have you any problem with these of any line you can ping me with the comment box.

To Create a complete PHP CRUD…


Originally: HTML How to Comment With Example — PHPCODER.TECH

In this article HTML How to Comment we discussed How to comment out in HTML?, HTML comment syntax, and two or more examples where we use HTML comment in the document.

Basically, comments are helpful for web developers or designers to know about source code working which is encapsulated with some information about code using Comment Tag by any developer.

Here are the details which we discuss in this article,

  • Major points about HTML Comment Tag
  • HTML: How to Comment with Example
  • Browser Support

Major points about HTML Comment Tag

  1. The <!--...--> is an HTML Comment Tag.

Introduction

To Check Process Running in Windows using PHP, we have to use PHP tasklist command with exec() function.

Originally: https://phpcoder.tech/how-to-check-process-running-in-windows/

Complete Code to Check Process Running in Windows

<?php

// show tasks, redirect errors to NUL (hide errors)

exec(“tasklist 2>NUL”, $task_list);

echo “<pre>”;

print_r($task_list);

?>

Code Explanation:

  • On the above code, we use the PHP tasklist command to see what processes are running in Windows.
  • exec is the PHP inbuilt function used to execute an external program and return the last value, if there is no return then it returns the NULL value.
  • In the last line we print the $task_list variable where we store the list of running processes…

In This Article

Before we start the tutorial on How to Get Current Date and Time In JavaScript, we have to know the brief of JavaScript and Date method in JS.

How to Get Current Date and Time In JavaScript — PHPCODER.TECH, to check live view

Introduction

JavaScript is lightweight a client-side scripting language used to build client-side validations and much more. …


In This Article

On PHP Error Reporting, first, you have to know about What is error reporting in PHP and how we enable it. Here is the list of the major part of error reporting in PHP which we talked about in this tutorial,

  • What is PHP error reporting?
  • About PHP error reporting on and off.

What is PHP Error Reporting?

Error reporting is an inbuilt feature of PHP and used to show all errors, notices, and warnings of…

Bikash Panda

I am a web application developer. FB Community: @mrpandatech, Twitter: @phpcodertech My PHP problem-solving site http://phpcoder.tech

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store