"; PrintAccs(); echo ""; echo " "; function PrintAccs() { global $link; $query1 = mysqli_query($link,"select * from accounts"); while ($res1 = mysqli_fetch_array($query1)) { $id = $res1['id']; $name = $res1['name']; $active = $res1['active']; $login = $res1['login']; $email = $res1['email']==NULL ? "-": $res1['email'];; $skype = $res1['skype']==NULL ? "-": $res1['skype']; $phone = $res1['phone']==NULL ? "-": $res1['phone'];; $tag = "fail"; if (intval($active==1) || intval($active==6)) $tag = "success"; echo "<$tag>$id: $name [$login] E-mail: $email Skype: $skype Телефон: $phone"; echo "
"; } } ?>