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
08ad34fa
Commit
08ad34fa
authored
Mar 18, 2021
by
Srinivas
Browse files
Update nouse2.php
parent
663e77f1
Changes
1
Show whitespace changes
Inline
Side-by-side
nouse2.php
View file @
08ad34fa
<?php
session_start
();
include
(
'connection.php'
);
$connection
=
getdb
();
?>
<html>
<head>
...
...
@@ -162,8 +164,6 @@ if($_SESSION['username']){
</form>
<table>
<?php
$connection
=
mysqli_connect
(
"localhost"
,
"root"
,
""
);
$db
=
mysqli_select_db
(
$connection
,
'test'
);
$x
=
$_GET
[
'id'
];
date_default_timezone_set
(
'Asia/Kolkata'
);
$date
=
date
(
'y-m-d H:i:s'
);
...
...
@@ -183,8 +183,6 @@ header("Location:nouse.php");
</form><br><br>
<?php
$x
=
$_GET
[
'id'
];
$connection
=
mysqli_connect
(
"localhost"
,
"root"
,
""
);
$db
=
mysqli_select_db
(
$connection
,
'test'
);
$query
=
"SELECT * FROM student where ID='
$x
' "
;
$query_run
=
mysqli_query
(
$connection
,
$query
);
?>
...
...
Write
Preview
Supports
Markdown
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