There is a form where the user chooses which list to show (mail, email, everything). The query has already written a condition ( WHERE from = '1' or WHERE from = '0' or without condition) There is a multidimensional array, it contains the [from] key, whose values โโcan be 0 or 1 . on which the array is created. I deduce
if ($data[0]['from'] == '1') { echo "ัะตะบัั"; } else { echo "ะดััะณะพะน ัะตะบัั"; } And how to bring everything together, when in the key [from] there are both 0 and 1 ?
Here is part of the array
Array ( [0] => Array ( [id] => 8 [from] => 0 [data_num] => 8 [input_date] => 2017-07-04 [description] => fgfgfg ) [1] => Array ( [id] => 7 [from] => 1 [data_num] => 7 [input_date] => 2017-07-03 [description] => asd ) )