See, although if, if there is this word, then do it, and it does it

if(isset($_POST['uppercasecenders'])){$demostyle = $_POST['uppercasecenders'];} if(isset($_POST['arealetters'])){$arealetter = $_POST['arealetters'];} $word = mysql_real_escape_string($demostyle); $senderlables = mysql_query("SELECT email FROM labels WHERE namelable='$word'"); while($rowlabels = mysql_fetch_array($senderlables)){ if($demostyle == $rowlabels['namelable']){ echo 'Отправлено'; }else{ echo 'Извините, но лейблов для '.$demostyle.', в базе пока нету'; } } 
  • one
    @trix, you have been online for a month, it’s time to learn how to format the code. - Deonis

1 answer 1

So you return only a sample email, so your check if($demostyle == $rowlabels['namelable']){ will not give anything :)