+
+ 0){
+ echo '
';
+ echo "";
+ echo "";
+ echo "| # | ";
+ echo "Name | ";
+ echo "Address | ";
+ echo "Salary | ";
+ echo "Action | ";
+ echo "
";
+ echo "";
+ echo "";
+ while($row = mysqli_fetch_array($result)){
+ echo "";
+ echo "| " . $row['id'] . " | ";
+ echo "" . $row['name'] . " | ";
+ echo "" . $row['address'] . " | ";
+ echo "" . $row['salary'] . " | ";
+ echo "";
+ echo '';
+ echo '';
+ echo '';
+ echo " | ";
+ echo "
";
+ }
+ echo "";
+ echo "
";
+ // Free result set
+ mysqli_free_result($result);
+ } else{
+ echo '
No records were found.
';
+ }
+ } else{
+ echo "Oops! Something went wrong. Please try again later.";
+ }
+
+ // Close connection
+ mysqli_close($link);
+ ?>
+