I NEED TO DISPLAY DATA OF MYSQL DATABASE AND I NEED TO GIVE ELIGIBILITY TO THE VISITOR TO SEARCH. THIS IS A WORDPRESS WEBSITE

Question

for example:CORONA PANDEMIC i have data of blood donor who like to donate blood and when patient enter to the website i need him to find the donor who have the same blood type. ok now those data come from my cpanel database and i need to display only the same blood type. so this will filter by country, blood type, age likewise.
html code is here. please find errors.
**<!Doctype html>

filter in PHP

HOW TO FILTER RECORDS USING PHP

PHP FILTERS

Country

DonarNpatient

Donar
Patient

<div class= "form-group">
  <lable3 class="col-lg-6 control-lable">Bloodtype</lable3>
  <div class="col-lg-8">
    <select class="Bloodtype">
      <option>select</option>
      <option value="A+">A+</option>
        <option value="A-">A-</option>
          <option value="B+">B+</option>
            <option value="B-">B-</option>
              <option value="AB+">AB+</option>
                <option value="AB-">AB-</option>
                  <option value="O+">O+</option>
                    <option value="O-">O-</option>
                    </select>
  </div>
</div>

<div class= "form-group">
  <lable4 class="col-lg-2 control-lable"></lable4>
  <div class="col-lg-8">
    <input type ="submit" name="submit" class=" btn btn-primary">

  </div>
</div>

ID
Type
Country
City
Bloodtype
Situation

0 ) {
while ($row * mysqli_fetch_assoc($data)){
$id= $row[‘id’];
$Type= $row[‘Type’];
$Country= $row[‘Country’];
$City= $row[‘City’];
$Bloodtype= $row[‘Bloodtype’];
$Situation= $row[‘Situation’];

?>

                <tr>
                  <td><?php echo $id;?></td>
                  <td><?php echo $Type;?></td>
                  <td><?php echo $Country;?></td>
                  <td><?php echo $City;?></td>
                  <td><?php echo $Bloodtype;?></td>
                  <td><?php echo $Situation;?></td>
                </tr>
                <?php

    }

  }
  else {
    ?>
    <tr>
      <td>records not found</td>
    </tr>
    <?php

}
}
}
?>

**

0
, , TIM Creations 7 months 0 Answers 83 views 0

Leave an answer