+ and - getting from table

Hi to all

I am using some blood group in my table I am getting O -ve, A -ve perfectly but I have problem with O +ve, AB +ve, B +ve that means + values not showing in my list. (all +,- values stored in my table)

I used this code for get Blood groups

<li><a href="http://<?php echo $_SERVER['HTTP_HOST'];?>/polite/blood/get_typeblood_list.php?bgroup=AB +ve">AB +ve</a></li>
<li><a href="http://<?php echo $_SERVER['HTTP_HOST'];?>/polite/blood/get_typeblood_list.php?bgroup=AB -ve">AB -ve</a></li>

guide me, How can I solve my problem.

Can you explain more, how you get all these values from table. Your code?
In the links you mentioned just +ve, i did not see any variable there which is retrieved from table.

mmarif4u Thank U replay here.

in index code.

<li><a href="http://<?php echo $_SERVER['HTTP_HOST'];?>/polite/blood/get_typeblood_list.php?bgroup=O +ve">O +ve</a></li>
<li><a href="http://<?php echo $_SERVER['HTTP_HOST'];?>/polite/blood/get_typeblood_list.php?bgroup=O -ve">O -ve</a></li>

I used my get_typeblood_list.php code

$bgroup = addslashes(strip_tags($_GET['bgroup']));

echo "<table border = '0' cellspacing = '6' cellpadding = '5' align='center' bgcolor='#7D9EC0' >";
// keeps getting the next row until there are no more to get
echo '<tr>'; //open the row

// Print out the contents of each row into a table
echo "<table align='center'  bgcolor='#F5F5DC'  class='reference' width='100%' border='1' cellpadding='0' cellspacing='0' >
<tr bgcolor='#00688B'>
    <th width='25%'><font color='white'>Donors Name</th>
	<th><font color='white'>Blood Group</th>
    <th width='25%'><font color='white'>Address</th>
    <th><font color='white'>Contact No</th>


try useing: rawurlencode to encode

<?php echo $_SERVER['HTTP_HOST'];?>/polite/blood/get_typeblood_list.php?bgroup=<?php echo rawurlencode('O +ve') ?>">O +ve</a></li> 

to decode in your PHP script you can use rawurldecode

Gar onn Thank U Quick replay.

Its working Fine…

Thank U So… Much…

:slight_smile: ShekarGoud.