I have problems with looping of my table when displaying here are the codes
<html>
<?php
$Candidate =$_POST ['candidate']; 
$link = mysqli_connect('localhost', 'root', '', 'test') or die(mysqli_connect_error());
$query = "SELECT * FROM `table 1` WHERE `fullname` LIKE '$Candidate%'";
$result = mysqli_query($link, $query) or die(mysqli_error($link));
mysqli_close($link);
$row=mysqli_fetch_assoc($result);
while ($row = mysqli_fetch_array($result))
{
 echo <table>
    echo "Name Of Candidate:". @$row['fullname'];
    echo "<br>";
    echo "comments:".@$row['comments'];
}
?>
initially i want the search results to be displayed in a table format any help?
 
     
     
     
    