Ola wanted to do a search in the database with and that only bring the response if conditions are reached used code.
$sql2 ="SELECT * FROM 'link' WHERE 1 LIKE ds_url_orig='https://www.frasesdobem.com.br/frases-incriveis' AND ds_email_link_modo='0'";
$query2 = mysqli_query($link, $sql2) or die(mysqli_error());
$show2 = mysqli_fetch_array($query2);
$email_type = $show2['ds_email_link_modo'];
while($rows = mysqli_fetch_array($query2)){
$email_type =$rows['ds_email_link_modo'];
echo $email_type.'/';
}
If ds_url_orig is found and ds_email_link_modo is equal to the one it queried it shows, and if one of them is false it does not show result. However the code continues to show if a condition is true someone can help me