0
I have a div (#Adm) that shows me the result of all registered users and in front a button to unlock or block the user. How do I click it, make it expand and retract showing the results ?
<div id="adm">
<?php
include 'script/php/conn_padrao.php';
$select_user = $mysqli->query("SELECT * FROM cadastros ORDER BY id DESC ");
if (mysqli_num_rows($select_user) >= 1) {
while ($res_user = $select_user->fetch_array()) {
$id_user = $res_user['id'];
$nome_user = $res_user['nome'];
$banido = $res_user['block'];
$uper_ban = strtoupper($banido);
echo " $nome_user" . " - " . "Acesso Bloqueado:" . " " . "<a href='script/php/bloqueia_user.php?id=$id_user&block=$banido'>$uper_ban</a><br>";
}
}else{
echo "VOCÊ NÃO POSSUI USUARIOS CADASTRADO !";
}
?>
</div>
Perfect. Really would be all I needed. Thank you
– CodegTech Sistemas
There would be no way to do it using accordion, those clickable arrows that Jah suggests to the user, option using css or Javascript?
– It Wasn't Me
@Itwasn'tme depends on what the user wants. He said he wanted a collapsible window, and that’s what I put in the answer.
– CypherPotato