HTML: List in reversed order

Add the “reversed” attribute to the “ol” tag The reversed attribute is a boolean attribute.When present, it specifies that the list order should be descending (9,8,7…), instead of ascending (1, 2, 3…). Reference: HTML <ol> reversed Attribute

Why Do You Need PHP FastCGI Process Manager?

By Elvis Plesky; November 3, 2020 PHP-FPM (an acronym of FastCGI Process Manager) is a hugely-popular alternative PHP (Hypertext Processor) FastCGI implementation. As you may or may not know, PHP is one of the biggest open-source software programming languages utilized online. It features heavily in web development across such well-known platforms as Drupal, Magento, and WordPress, and was originally devised … Read more

Web Workers API

Web Workers makes it possible to run a script operation in a background thread separate from the main execution thread of a web application. The advantage of this is that laborious processing can be performed in a separate thread, allowing the main (usually the UI) thread to run without being blocked/slowed down.

Fetch API

The Fetch API provides an interface for fetching resources (including across the network). It will seem familiar to anyone who has used XMLHttpRequest, but the new API provides a more powerful and flexible feature set. … The fetch() method takes one mandatory argument, the path to the resource you want to fetch. It returns a Promise … Read more

Modern AJAX with fetch API

Fetch is the modern way to perform AJAX when working with JavaScript. Instead of writing cumbersome AJAX code or using libraries such as jQuery and Angular, the new JavaScript standard offers a more compact, modern, and flexible syntax.

Basic HTML Meta Tags

<code> <meta charset=’UTF-8′> <meta name=’keywords’ content=’your, tags’> <meta name=’description’ content=’150 words’> <meta name=’subject’ content=’your website’s subject’> <meta name=’copyright’ content=’company name’> <meta name=’language’ content=’ES’> <meta name=’robots’ content=’index,follow’> <meta name=’revised’ content=’Sunday, July 18th, 2010, 5:15 pm’> <meta name=’abstract’ content=”> <meta name=’topic’ content=”> <meta name=’summary’ content=”> <meta name=’Classification’ content=’Business’> <meta name=’author’ content=’name, email@hotmail.com’> <meta name=’designer’ content=”> <meta name=’reply-to’ … Read more

HTML Computer Code Elements

HTML contains several elements for defining user input and computer code. <code> x = 5; y = 6; z = x + y; </code> HTML <kbd> For Keyboard Input The HTML <kbd> element is used to define keyboard input. The content inside is displayed in the browser’s default monospace font. HTML <samp> For Program Output … Read more

PHP Tutorial

Welcome to the modern PHP tutorial! This PHP tutorial helps you learn how to develop dynamic websites and web applications using PHP from scratch. PHP is one of the most popular programming languages for web development. PHP allows you to develop various web applications, including blogs, content management systems (CMS), and online stores.

How to create Pagination with PHP and MySQL

<html> <head> <title>Pagination</title> <!– Bootstrap CDN –> <link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css”> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js”></script> <script src=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js”></script> </head> <body> <?php if (isset($_GET[‘pageno’])) { $pageno = $_GET[‘pageno’]; } else { $pageno = 1; } $no_of_records_per_page = 10; $offset = ($pageno-1) * $no_of_records_per_page; $conn=mysqli_connect(“localhost”,”my_user”,”my_password”,”my_db”); // Check connection if (mysqli_connect_errno()){ echo “Failed to connect to MySQL: ” . mysqli_connect_error(); die(); } … Read more

How to convert MySQL data to JSON using PHP

<?php // Initialize variable for database credentials $dbhost = ‘hostname’; $dbuser = ‘username’; $dbpass = ‘password’; $dbname = ‘sakila’; //Create database connection $dblink = new mysqli($dbhost, $dbuser, $dbpass, $dbname); //Check connection was successful if ($dblink->connect_errno) { printf(“Failed to connect to database”); exit(); } //Fetch 3 rows from actor table $result = $dblink->query(“SELECT * FROM actor … Read more