How to put an if and else in this code for when the search in the database returns no value?
include_once("conexao.php");
$sql= "SELECT FROM tb_nome WHERE nome LIKE '$pesquisar%'";
$salvar = mysqli_query($conexao,$sql);
while ($linhas = mysqli_fetch_array($salvar){
echo "Nome: ".$linhas['nome']."<br>";
echo "Nome: ".$linhas['telefone']."<br>";
}