mardi 19 mai 2020

Show information based on the count if else condition [duplicate]

Can anyone tell me the best way to do this?

  1. I am trying to make an information about student search based on name and ID
  2. when the name exists, a search result and information will appear
  3. if data is not found, information will appear that the data does not exist

my question is, how do I implement if else count for these conditions?

<head>
    <title></title>
</head>
<body>
<div class="block-heading">
   <h2 class="text-info" id="student">Student Data</h2>
   <p>The following is the student status from : <b><?= $getinput;?></b> //from search input
      <br>
      Student Name : <b><?php echo $getnamestudent;?></b> //result
      <br>
      Student ID   : <b><?php echo $getidstudent;?></b> //result
      <br>
      Note : The names of students below are listed in the school database, for your children who have no name, please contact the administration.<br>
      Contact CS / Administration (62342) 404-428 for further information.
   </p>
</div>
</body>
</html>```




Aucun commentaire:

Enregistrer un commentaire