Commit 5b1d0d53 authored by Srinivas's avatar Srinivas
Browse files

Update contact2.php

parent aefc5ec5
<?php
session_start();
include('connection.php');
$connection = getdb();
?>
<!DOCTYPE html>
<html lang="en-ca">
......@@ -333,8 +336,6 @@ tbody tx:last-of-type ty {
<h1>Warden Page</h1>
<?php
$x=$_GET['id'];
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection,'test');
$query2= "SELECT * FROM user_login where username='$x' ";
$query2_run = mysqli_query($connection,$query2);
$row = mysqli_fetch_array($query2_run);
......@@ -390,8 +391,6 @@ if($_SESSION['username3']){
<tx>
<ty><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<?php
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection,'test');
$x=$_GET['id'];
$query2= "SELECT * FROM user_login where username='$x' ";
$query2_run = mysqli_query($connection,$query2);
......@@ -560,4 +559,4 @@ echo "<script>location.href='2.php'</script>";
?>
</body>
</div>
</html>
\ No newline at end of file
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment