Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
KLUGLUG
KL Hostel Outing Automation
Commits
fcc7653d
Commit
fcc7653d
authored
Mar 18, 2021
by
Srinivas
Browse files
Update about5.php
parent
6940d4df
Changes
1
Hide whitespace changes
Inline
Side-by-side
about5.php
View file @
fcc7653d
<?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
);
...
...
@@ -389,8 +390,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
);
...
...
@@ -567,4 +566,4 @@ echo "<script>location.href='2.php'</script>";
?>
</body>
</div>
</html>
\ No newline at end of file
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment