Hub of TutorialsHub of TutorialsHub of TutorialsHub of Tutorials
  • Technology
    • HTML
    • CSS
    • jQuery
    • WordPress
    • Core PHP
    • Mysql
    • JAVA
  • Others
  • Projects
  • Recipes
  • Deals
    • Web Hosting
      • Hostinger
      • Hostgator
  • Guest Post
  • Contact
Recommendation
Recommendation
How to Fetch Loged in Username
  • No Comments

How to Fetch Logged in Username

after login, we need to fetch Username. We will explain How to Fetch Logged in Username. index.php <?php include("db.php"); session_start(); if($_SESSION['username']=="") { session_destroy(); header("location:index.php"); } ?> <html> <head> <title>Fetch Loged in Username</title> </head> </body> <?php include('db.php'); $query="select * from user where username='".$_SESSION['username']."' "; $query1=mysql_query($query); $row=mysql_fetch_array($query1) ?> <h1> <?php echo $row['name']; ?></h1> </body> </html> db.php <?php […]
Read Full Article

Recent Posts

What is Data Analysis

What is Data Analysis

  • March 5, 2021
How to Make Veggie Burger

How to Make Veggie Burger

  • February 22, 2021
Benefits of Working From Home

Benefits of Working From Home

  • February 13, 2021
What is Web Hosting?

What is Web Hosting?

  • December 15, 2020
web hosting Hostgatorweb hosting Hostgator
  • How to Create List in HTML
  • How to use Iframe in HTML
  • How to Create a Table in HTML and CSS
  • How to Add New HTML Content using jQuery
  • CSS Property of List tag in HTML
  • How to use CSS for Table in HTML
  • Company Visitors Management System
  • Complaint Management System using PHP
  • Directory Management System
  • Employee Record Management System
  • Hospital Management System using PHP
  • Vehicle Parking Management System
  • Company Visitors Management System
  • Complaint Management System using PHP
  • Directory Management System
  • Employee Record Management System
  • Hospital Management System using PHP
  • Vehicle Parking Management System

2020 © All rights reserved by Hub of Tutorials