I'm developing a basic CRUD, and I need it when the user clicks EDIT, open a form below, or the side, it does not matter, with the fields for it to edit such information, and when you click OK, the field disappears and show the edited fields.
<?php$sql="SELECT * FROM postagens";
$result = $postagens->select();
while ($array = mysql_fetch_array($result)){
echo '<h2><li>' .$array['titulo'].'<h2></li>
<h4><li>' .$array ['conteudo'].'</li></h4>
<h4><li>'.$array['id'].'</li></h4>
<a href="Postagens/editarPost.php"><input type="button" value="Editar"></a>
<a href="index.php?exid='.$array['id'].'"><input type="button" value="Excluir"></p>';
?>