Skip to content

Instantly share code, notes, and snippets.

View Mauryashubham's full-sized avatar

Shubham Maurya Mauryashubham

View GitHub Profile
@Mauryashubham
Mauryashubham / class.User.php
Created September 8, 2017 06:13
Simple login and registration process using PHP
<?php
/**
*
*/
class USER
{
private $db;
//Constructor
@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>
@Mauryashubham
Mauryashubham / index.php
Created March 15, 2017 14:09
SHARE POST ON FACEBOOK PLUGIN EASY WAY
Hi all , Welcome to Maurya Tricks , Today we are going to discuss ,
how to Share Post on Facebook in an easy way.
1.Make a file in notepad and save it as index.php and paste the below code.
<html>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
@Mauryashubham
Mauryashubham / header.php
Created March 7, 2017 13:34
How to use Sessions in Menu Bar after Login in PHP
<nav class="navbar navbar-inverse" style="border-radius: 0px;">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Your WebSite Name</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">About</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
@Mauryashubham
Mauryashubham / index.php
Created March 8, 2017 07:29
How to upload Image in Folder using PHP [Without Database]
Hi all , Welcome to Maurya Tricks , Today we are going to discuss , How to upload Image in Folder using PHP [Without Database]
1.Make a file in notepad and save it as index.php and paste the below code.
<?php
/**
@author : Shubham Maurya,
Email id : maurya.shubham5@gmail.com
**/
@Mauryashubham
Mauryashubham / index.php
Created March 10, 2017 07:13
Simple Live Notification Example in PHP using Ajax
Hi all , Welcome to Maurya Tricks , Today we are going to discuss ,
how to make a Simple Live Notification Example in PHP using Ajax
/**
@author : Shubham Maurya,
Email id : maurya.shubham5@gmail.com
**/
//Database Creation
@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 / index.php
Created March 9, 2017 08:27
Upload and Retrieve Image From Database in PHP
Hi all , Welcome to Maurya Tricks , Today we are going to discuss ,
How to Upload and Retrieve Image From Database in PHP
//Database Creation
Make a database named “testdb and table named “image” .
Give the element name 'b_image' (varchar(255)) in tables 'test'.
//Make a folder named "image" in your directory , here the images get saved
1.Make a file in notepad and save it as index.php and paste the below code.
@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 / class.User.php
Created March 8, 2017 08:28
Simple Login/Registration Process in PHP using PDO
<?php
/**
*
*/
class USER
{
private $db;
//Constructor