Snippets
A collection of snippets from CSS-Tricks website for the following groups: HTML CSS Sass SVG htaccess JavaScript jQuery WordPress PHP
THE Ultimate .htaccess Guide
htaccess is a very ancient configuration file that controls the Web Server running your website, and is one of the most powerful configuration files you
3 ways to display two divs side by side (float, flexbox, CSS grid)
Here are 3 ways you can use CSS to place HTML div elements side by side. Float method Flexbox method CSS grid method
127.0.0.1 IP Address Explained
An explanation of the loopback IP address/localhost The IP address 127.0.0.1 is a special-purpose IPv4 address and is called the localhost or loopback address. All
What Is the 192.168.0.0 IP Address?
192.168.0.0 is the beginning of the private IP address range that includes all IP addresses through 192.168.255.255. This IP address is usually not used on a network,
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
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
MySQL LIMIT & OFFSET with Examples
Using the OFF SET in the LIMIT query The OFF SET value is also most often used together with the LIMIT keyword. The OFF SET value allows
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
How To Remove HTML Tags In PHP & MySQL – Simple Example
To remove HTML tags in PHP, we can either use the strip_tags() or htmlentities() function: The strip_tags() function will remove all HTML tags. For example, $clean = strip_tags(“<p>Foo</p> Bar”); will result in Foo Bar.