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
Blood Service Portal
Commits
9ece957b
Commit
9ece957b
authored
Oct 26, 2019
by
Ajayguru Madu
Browse files
Upload New File
parent
c988e770
Changes
1
Hide whitespace changes
Inline
Side-by-side
admin/view.php
0 → 100644
View file @
9ece957b
<?php
require
(
'db.php'
);
include
(
"auth.php"
);
?>
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<title>
View Records
</title>
<link
rel=
"stylesheet"
href=
"css/style.css"
/>
</head>
<body>
<div
class=
"form"
>
<p><a
href=
"index.php"
>
Home
</a>
|
<a
href=
"insert.php"
>
Insert New Record
</a>
|
<a
href=
"logout.php"
>
Logout
</a></p>
<h2>
View Records
</h2>
<table
width=
"100%"
border=
"1"
style=
"border-collapse:collapse;"
>
<thead>
<tr><th><strong>
S.No
</strong></th><th><strong>
Name
</strong></th><th><strong>
Blood Group
</strong></th><th><strong>
Age
</strong></th><th><strong>
Region/Place
</strong></th><th><strong>
Mobile No
</strong></th><th><strong>
City
</strong></th><th><strong>
Edit
</strong></th><th><strong>
Delete
</strong></th></tr>
</thead>
<tbody>
<?php
$count
=
1
;
$sel_query
=
"Select * from bloo ORDER BY id desc;"
;
$result
=
mysqli_query
(
$con
,
$sel_query
);
while
(
$row
=
mysqli_fetch_assoc
(
$result
))
{
?>
<tr><td
align=
"center"
>
<?php
echo
$count
;
?>
</td><td
align=
"center"
>
<?php
echo
$row
[
"uname"
];
?>
</td><td
align=
"center"
>
<?php
echo
$row
[
"blood"
];
?>
</td><td
align=
"center"
>
<?php
echo
$row
[
"age"
];
?>
</td><td
align=
"center"
>
<?php
echo
$row
[
"addr1"
];
?>
</td><td
align=
"center"
>
<?php
echo
$row
[
"mobile"
];
?>
</td><td
align=
"center"
>
<?php
echo
$row
[
"city"
];
?>
</td><td
align=
"center"
><a
href=
"edit.php?id=
<?php
echo
$row
[
"id"
];
?>
"
>
Edit
</a></td><td
align=
"center"
><a
href=
"delete.php?id=
<?php
echo
$row
[
"id"
];
?>
"
>
Delete
</a></td></tr>
<?php
$count
++
;
}
?>
</tbody>
</table>
</div>
</body>
</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