0){ echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; while($row = mysqli_fetch_array($result)){ echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
Cust_idCust_nameAddressCitystatus
" . $row['Cust_id'] . "" . $row['Cust_name'] . "" . $row['Address'] . "" . $row['City'] . "" . $row['status'] . "
"; // Free result set mysqli_free_result($result); } else{ echo "No records matching your query were found."; } } else{ echo "ERROR: Could not able to execute $sql. " . mysqli_error($link); } // Close connection mysqli_close($link); ?>