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
f8c8b34c
Commit
f8c8b34c
authored
Nov 27, 2019
by
Nunna Satya Surya Venkat
Browse files
Upload New File
parent
1dcb1ad9
Changes
1
Hide whitespace changes
Inline
Side-by-side
select.php
0 → 100644
View file @
f8c8b34c
<?php
include
(
'init.php'
)
?>
<?php
$obj
=
new
base_class
;
$result
=
$_GET
[
'type'
];
if
(
$result
==
'apos'
)
{
$re
=
'A+'
;
}
else
if
(
$result
==
'aneg'
)
{
$re
=
'A-'
;
}
else
if
(
$result
==
'bpos'
)
{
$re
=
'B+'
;
}
else
if
(
$result
==
'bneg'
)
{
$re
=
'B-'
;
}
else
if
(
$result
==
'abpos'
)
{
$re
=
'AB+'
;
}
else
if
(
$result
==
'abneg'
)
{
$re
=
'AB-'
;
}
else
if
(
$result
==
'opos'
)
{
$re
=
'O+'
;
}
else
if
(
$result
==
'oneg'
)
{
$re
=
'O-'
;
}
$co
=
1
;
if
(
$obj
->
Normal_Query
(
"SELECT * from bloo where blood LIKE '
$re
%' "
)){
$blood_result
=
$obj
->
fetch_all
();
echo
"<center>"
;
echo
"<table>
<tr>
<th>S.No</th>
<th>Name</th>
<th>Blood Group</th>
<th>Mobile Number</th>
</tr>"
;
foreach
(
$blood_result
as
$informations
)
:
$id
=
$informations
->
id
;
$name
=
$informations
->
uname
;
$blood
=
$informations
->
blood
;
$mobile
=
$informations
->
mobile
;
echo
"<tr><td>
$co
</td><td>
$name
</td><td>
$blood
</td><td>
$mobile
</td></tr>"
;
$co
+=
1
;
endforeach
;
}
echo
"</table>"
;
echo
"</center>"
;
?>
\ No newline at end of file
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