Skip to content

Instantly share code, notes, and snippets.

View Mauryashubham's full-sized avatar

Shubham Maurya Mauryashubham

View GitHub Profile
@Mauryashubham
Mauryashubham / index.php
Created May 13, 2021 12:56
GET PREVIOUS WEEK DATES USING CUSTOM DATE IN PHP
GET PREVIOUS WEEK DATES USING CUSTOM DATE IN PHP</strong></p>
@author : Shubham Maurya
Email id : maurya.shubham5@gmail.com
Hi all , Welcome to shubhammaurya.com , Today we are going to discuss , how to get previous week dates from a custom date/user given date.
We will use strtotime() function to get all dates.
<?php
@Mauryashubham
Mauryashubham / jsonApi.php
Created October 9, 2019 11:22
Convert Mysqli Data Into JSON Format Using PDO
So, To start first make a file in notepad and save it as jsonApi.php and paste the below code.
(Displaying data into json format)
<?php
$DB_host = "localhost";
$DB_name = "Your Database Name";
$DB_user = "Your Database User";
$DB_pass = "Your Database Password";
@Mauryashubham
Mauryashubham / index.html
Last active August 26, 2019 07:08
How to change language in google translate using php
How to change language in google translate using php
How to change language in google translate using php
/**
@author : Shubham Maurya,
Email id : maurya.shubham5@gmail.com
**/
Hi all , Welcome to shubhammaurya.com , Today we are going to discuss ,
How to change language in google translate using php
@Mauryashubham
Mauryashubham / index.html
Created July 11, 2019 14:55
Bootstrap Auto Popup on page load
Auto Popup on page load
How to make an Auto Popup on page load and close after some time using bootstrap
/**
@author : Shubham Maurya,
Email id : maurya.shubham5@gmail.com
**/
Hi all , Welcome to shubhammaurya.com , Today we are going to discuss ,
How to make an Auto Popup on page load and close after some time
@Mauryashubham
Mauryashubham / index.php
Created July 8, 2019 09:53
Bootstrap Simple Pagination
How to make Bootstrap Simple Pagination using PHP
/**
@author : Shubham Maurya,
Email id : maurya.shubham5@gmail.com
**/
Hi all , Welcome to shubhammaurya.com , Today we are going to discuss ,
How to make Bootstrap Simple Pagination using PHP
In this,we are going to use Bootstrap as front-end framework.
@Mauryashubham
Mauryashubham / index.html
Created July 7, 2019 15:31
Bootstrap Panel Custom Design
How to make Custom Design Bootstrap Panel
/**
@author : Shubham Maurya,
Email id : maurya.shubham5@gmail.com
**/
Hi all , Welcome to shubhammaurya.com , Today we are going to discuss ,
How to make Custom Design Bootstrap Panel
In this,we are going to use Bootstrap as front-end framework.
@Mauryashubham
Mauryashubham / index.php
Last active April 19, 2022 20:19
PHPMailer Problem Solved for PHP 7+
<?php
// Import PHPMailer classes into the global namespace
// These must be at the top of your script, not inside a function
use PHPMailer\PHPMailer\PHPMailer;
//use PHPMailer\PHPMailer\Exception;
//require 'phpmailer/src/Exception.php';
require 'phpmailer/src/PHPMailer.php';
require 'phpmailer/src/SMTP.php';
@Mauryashubham
Mauryashubham / address_ajax.php
Created September 15, 2017 08:06
Simple Live Search Using Ajax
<?php
/**
@author : Shubham Maurya,
Email id : maurya.shubham5@gmail.com
**/
require_once 'db/dbconfig.php';
if(isset($_POST['add_text']))
{
@Mauryashubham
Mauryashubham / dbconfig.php
Created September 12, 2017 06:06
SQL UNION OPERATOR
<?php
/**
@author : Shubham Maurya,
Email id : maurya.shubham5@gmail.com
**/
$DB_host = "localhost";
$DB_user = "root";
$DB_pass = "";
@Mauryashubham
Mauryashubham / index.html
Created September 9, 2017 05:49
How to make a pop up form using bootstrap
/**
@author : Shubham Maurya,
Email id : maurya.shubham5@gmail.com
**
1.Make a file named index.html and save the code below
<!DOCTYPE html>
<html>
<head>