" . ""; $sql = "CALL selectUsers('$login', '$phone', '$email', $is_admin);"; $query = mysqli_query($con, $sql); while ($r = mysqli_fetch_assoc($query)) { $id = $r['id']; $login = $r['login']; $name = $r['name']; $surname = $r['surname']; $phone = $r['phone']; $email = $r['email']; $address = $r['address']; $is_admin = $r['is_admin'] == 1 ? 'Да' : 'Нет'; $host = $_SERVER['HTTP_HOST']; $link = "http://$host/admin/user_info.php?user_id="; $final_link = $link . $id; $btn = ""; echo ""; } echo "
IDЛогинНомер телефонаЭл. почтаАдминПодробности
$id$login$phone$email$is_admin$btn
"; } }