Category : Web Development

PHP Web Development

How to create pagination in PHP

Anuj Kumar
File structure for this tutorial : config.php (Database configuration file) index.php (Main file)  tbluser.sql (SQL Table structure with dummy data) Demo——————————————————— First create a table
PHP Web Development

How to fetch data in excel or generate excel file in PHP

Anuj Kumar
File structure for this tutorial :   config.php (database connection file)   index.php (For fetching data )   genrate-excel.php (For genrating excel file ) Create
PHP Web Development

How to get yesterday and tomorrow date in php

Anuj Kumar
Syntax for getting yesterday using php <?php echo "Yesterday Date : "; echo date("Y-m-d",strtotime("yesterday")); ?> Syntax for getting tomorrow using php <?php echo "Tomorrow date
PHP Web Development

How to Salt & Hash a Password using Sha256

Anuj Kumar
In last tutorial we learned password hashing in php. In this tutorial we will learn How to Salt & Hash a Password with Sha 256 in
PHP Web Development

Password Hashing in PHP

Anuj Kumar
Functions for hashing password password_hash() password_verify() password_hash() – Syntax: string password_hash(string $password , integer $algo [, array $options ] ) string $password – Password provide
PHP Web Development

How to prevent Cross-Site Request Forgery (CSRF) in PHP

Anuj Kumar
A cross-site request forgery (CSRF) vulnerability occurs when: A web application uses session cookies. he application acts on an HTTP request without verifying that the