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
Last active August 28, 2017 10:10
Send Email using Php-Mailer in PHP
<?php
/**
*
*/
class USER
{
private $db;
//Constructor
@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 / minimize-and-float-video-on-scroll.css
Created July 15, 2017 06:47
JW Player Demo: Minimize and Float Video on Scroll
.player-container {
background-color: black;
}
.player-minimize .player-position {
background-color: white;
border-radius: 2px;
bottom: 20px;
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.25);
left: 20px;
@Mauryashubham
Mauryashubham / index.html
Last active July 31, 2017 12:12
Simple html Bootstrap login form
Download the Project here : http://shubhammaurya.com/tuts/simple-html-bootstrap-login-form/
STAY CONNECTED FOR MORE
@Mauryashubham
Mauryashubham / index.php
Last active August 3, 2017 05:04
Password Hashing and Crypting Using PHP
Hi all , Welcome to shubhammaurya.com , Today we are going to discuss ,
how to Hash Password and Crypt Password Using PHP.
We are going to use 2 Methods.
1.crypt() and 2.password_hash()
1.Make a file in notepad and save it as index.php and paste the below code.
<?php
@Mauryashubham
Mauryashubham / index.php
Last active August 3, 2017 09:46
Show Progress Bar After Registration Form Submission
/**
@author : Shubham Maurya,
Email id : [email protected]
**/
Hi all , Welcome to shubhammaurya.com , Today we are going to discuss ,
how to Show Progress Bar After Registration Form Submission
1.Make a file in notepad and save it as index.php and paste the below code.
@Mauryashubham
Mauryashubham / index.php
Last active August 3, 2017 09:50
Call a HTML JavaScript Function from PHP using echo
/**
@author : Shubham Maurya,
Email id : [email protected]
**/
Hi all , Welcome to shubhammaurya.com , Today we are going to discuss ,
how to Call HTML JavaScript Function from PHP using echo
1.Make a file in notepad and save it as index.php and paste the below code.
@Mauryashubham
Mauryashubham / home.php
Last active August 10, 2017 07:29
Count Online Users Using PHP
1.Make a file in notepad and save it as home.php and paste the below code.
<?php
//connect to mysql database
$con = mysqli_connect("localhost", "root", "", "test") or die("Error " . mysqli_error($con));
$fetch="SELECT COUNT(*) FROM login WHERE LastTimeSeen > DATE_SUB(NOW(), INTERVAL 5 MINUTE)";
$fet=mysqli_query($con, $fetch);
$online_row = mysqli_fetch_row($fet);
@Mauryashubham
Mauryashubham / index.php
Created August 12, 2017 11:03
Multiple Image Upload PHP form
/**
@author : Shubham Maurya,
Email id : [email protected]
**/
1.Make a file in notepad and save it as index.php and paste the below code.
<?php
$DB_host = "localhost";
@Mauryashubham
Mauryashubham / index.php
Created August 19, 2017 09:25
Connect PHP to MSSQL database
/**
@author : Shubham Maurya,
Email id : [email protected]
**/
Hi all , Welcome to shubhammaurya.com , Today we are going to discuss ,
How to Call Connect PHP to MSSQL database
1.Make a file in notepad and save it as dbconfig.php and paste the below code.