Quantcast
Channel: Últimos conteúdos
Viewing all articles
Browse latest Browse all 14190

confirmaçao de exclusão

$
0
0

é o seguinte nesta tabela abaixo na confirmação de exclusão no href ele manda o codigo menos se tiver 3 por exemplo o  codigo 1, 2, 3 ele vai enviar pro excluir_cod_aluno somente o código 1 e eu quero que ele mande o codigo da linha que ele se encontra

 

codigo:

<table class="table table-hover">
<tr>
  <th width='10'>cod</th>
  <th width='100'>Nome</th>
  <th width='100'>Email</th>
  <th width='100'>Matricula</th>
  <th width='30'>Editar</th>
  <th width='30'>Excluir</th>
 
 
</tr>
<?php
while($linha=mysql_fetch_object($resultado)){
echo'<tr>';
 
echo"<td>{$linha->codigo}</td>";
echo"<td>{$linha->nome}</td>";
echo"<td>{$linha->email}</td>";
echo"<td>{$linha->matricula}</td>";
 
 
echo"<td><a href='alterar_form_aluno.php?codigo={$linha->codigo}'><img src='images/alterar.gif' width=24></a></td>";
?><td><a href='#modal-745464' data-toggle="modal"><img src='images/excluir.gif' width='24'></a></td>
<div class="modal fade" id="modal-745464" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
 
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
x
</button>
<h4 class="modal-title" id="myModalLabel">
Tem certeza que deseja excluir?
</h4>
</div>
<div class="modal-footer">
 
<button type="button" class="btn btn-default" data-dismiss="modal">
Não
</button>
 
<?php echo"<a href='excluir_cod_aluno.php?codigo={$linha->codigo}'>"?><button  type="button" class="btn btn-primary">
Sim
</button></a>
</div>
</div>
 
</div>
 
</div>
<?php
echo"</tr>";
}
 
?>
</table>

Viewing all articles
Browse latest Browse all 14190