I am making a select and before printing the form on the screen I would like to validate if the select returned lines, as I do this I tried in several ways without success.
$stmt = $dbh->prepare($fat_ped_online_vende);
$stmt->execute();
I wanted to do something like this
if(se retornar linhas):
//entra aqui
endif;