PHP Classes

File: example/inc/userpage.php

Recommend this page to a friend!
  Classes of Ashraf Gheith   PHP Secure Login and Registration   example/inc/userpage.php   Download  
File: example/inc/userpage.php
Role: Example script
Content type: text/plain
Description: Template
Class: PHP Secure Login and Registration
Register and login users in a database with PDO
Author: By
Last change: Fixed some bugs and security issues
Date: 6 years ago
Size: 1,306 bytes


Class file image Download
<!DOCTYPE html>
<html lang="en">
  <title>Bootstrap table</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="">
  <script src=""></script>
  <script src=""></script>

<div class="container">
  <h2>Welcome <?php print $_SESSION['user']['fname'].' '.$_SESSION['user']['lname']; ?></h2>
  <table class="table table-striped">
    <?php if($_SESSION['user']['user_role'] == 2){
        foreach (
$vars as $user) {
    <?php } ?></tbody>
  <p><a href='logout.php'>Logout</a></p>