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
b58a4250
Commit
b58a4250
authored
Mar 18, 2021
by
Srinivas
Browse files
Update Newneww.php
parent
fcc7653d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Newneww.php
View file @
b58a4250
<?php
session_start
();
include
(
'connection.php'
);
$connection
=
getdb
();
?>
<html>
<head>
...
...
@@ -166,8 +169,6 @@ if($_SESSION['username3']){
</form>
<table>
<?php
$connection
=
mysqli_connect
(
"localhost"
,
"root"
,
""
);
$db
=
mysqli_select_db
(
$connection
,
'test'
);
$x
=
$_GET
[
'id'
];
$pieces
=
explode
(
" "
,
$x
);
$x
=
$pieces
[
0
];
...
...
@@ -198,8 +199,6 @@ echo "<script>location.href='about5.php?id=$y'</script>";
<?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
);
?>
...
...
@@ -239,4 +238,4 @@ echo "<script>location.href='2.php'</script>";
}
?>
</body>
</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