Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. while ($linha = mysqli_fetch_array($ids))
  2. {
  3. $query = ("select * from componentes where id_principal = ".$linha[0]." ");
  4. $componentes = mysqli_query($con,$query);
  5. $resultado = mysqli_fetch_row($componentes);
  6.  
  7. $id_componente = $resultado[0];
  8. $codigo = $resultado[2];
  9. $nome = $resultado[3];
  10. $entrada = $resultado[4];
  11. $saida = $resultado[5];
  12. $f = $resultado[6];
  13. $m = $resultado[7];
  14. $g = $resultado[8];
  15. $gg = $resultado[9];
  16. $total = ($f + $m + $g + $gg);
  17.  
  18. print "<tr>";
  19. // ESSE É O BOTÃO QUE PRECISO PEGAR O ID QUANDO ELE SER PRESSIONADO
  20. print "<td><button id=".$id_componente." type='submit' class='btn btn-success'>".$codigo."</td>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement