Skip to content

Instantly share code, notes, and snippets.

View Mauryashubham's full-sized avatar

Shubham Maurya Mauryashubham

View GitHub Profile
@Mauryashubham
Mauryashubham / ajax.php
Created March 8, 2017 10:13
How to Use Ajax with Simple Example of Letters Conversion
2.Make a another file in notepad and save it as ajax.php and paste the below code.
<?php
/**
@author : Shubham Maurya,
Email id : maurya.shubham5@gmail.com
**/
if(isset($_POST['small_text']))
@Mauryashubham
Mauryashubham / index.html
Created March 8, 2017 11:28
Hide/Show Div in html Using JavaScript
Hi all , Welcome to Maurya Tricks , Today we are going to discuss ,
How to make Hide/Show Div in html Using JavaScript
1.Make a file in notepad and save it as index.php and paste the below code.
<!DOCTYPE html>
<html>
<head>
<title>Simple Function to hide and show using javascript</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
@Mauryashubham
Mauryashubham / ajax.php
Created March 9, 2017 07:46
Add Form Data in Database Using JavaScript in PHP (By Using HTML INNER values)
<?php
/**
@author : Shubham Maurya,
Email id : maurya.shubham5@gmail.com
**/
//connect to mysql database
$con = mysqli_connect("localhost", "root", "", "test") or die("Error " . mysqli_error($con));
@Mauryashubham
Mauryashubham / index.php
Created March 9, 2017 10:29
Open Choose File option by clicking on Image or Button in HTML
Hi all , Welcome to Maurya Tricks , Today we are going to discuss ,
how to Open Choose File option by clicking on Image or Button in HTML
/**
@author : Shubham Maurya,
Email id : maurya.shubham5@gmail.com
**/
1.Make a file in notepad and save it as index.php and paste the below code.
@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 : maurya.shubham5@gmail.com
**/
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 : maurya.shubham5@gmail.com
**/
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 : maurya.shubham5@gmail.com
**/
1.Make a file in notepad and save it as index.php and paste the below code.
<?php
$DB_host = "localhost";