Skip to content

Instantly share code, notes, and snippets.

View Mauryashubham's full-sized avatar

Shubham Maurya Mauryashubham

View GitHub Profile
@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
Last active August 21, 2018 08:41
How to upload Image in Database using PHP [With Folder]
Hi all , Welcome to Maurya Tricks , Today we are going to discuss ,How to upload Image in Database using PHP [With Folder]
//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
1.Make a file in notepad and save it as index.php and paste the below code.
@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
@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 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 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.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