Skip to content

Instantly share code, notes, and snippets.

Avatar

Shubham Maurya Mauryashubham

View GitHub Profile
@Mauryashubham
Mauryashubham / index.php
Created May 13, 2021
GET PREVIOUS WEEK DATES USING CUSTOM DATE IN PHP
View index.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 Oct 9, 2019
Convert Mysqli Data Into JSON Format Using PDO
View jsonApi.php
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 Aug 26, 2019
How to change language in google translate using php
View index.html
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 Jul 11, 2019
Bootstrap Auto Popup on page load
View index.html
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 Jul 8, 2019
Bootstrap Simple Pagination
View index.php
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 Jul 7, 2019
Bootstrap Panel Custom Design
View index.html
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 Nov 18, 2020
PHPMailer Problem Solved for PHP 7+
View index.php
<?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 Sep 15, 2017
Simple Live Search Using Ajax
View address_ajax.php
<?php
/**
@author : Shubham Maurya,
Email id : maurya.shubham5@gmail.com
**/
require_once 'db/dbconfig.php';
if(isset($_POST['add_text']))
{
View dbconfig.php
<?php
/**
@author : Shubham Maurya,
Email id : maurya.shubham5@gmail.com
**/
$DB_host = "localhost";
$DB_user = "root";
$DB_pass = "";
@Mauryashubham
Mauryashubham / index.html
Created Sep 9, 2017
How to make a pop up form using bootstrap
View index.html
/**
@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>