Jump to content
Fórum Script Brasil

Question

Bom dia Tenho o codigo abaixo onde monto uma tabela com o codigo php/html- usando os dados de um banco mysql , porém gostaria de transferir a 
linha selecionada pelo usuario, para uma outra pagina php como seus dados que estao no banco mysql
Queria saber como faço essa transferencia ?




<?php



include("config.php");

header("Content-type: text/html; charset=utf-8");
mysqli_set_charset($db,"utf8");


echo "
  <script language='javascript' type='text/javascript'>

    
   function clickListener(e){

         var id = e.getAttribute(id);
         
  }
  </script>
";







$sql = mysqli_query($db, "SELECT atend.numeroticket , atend.datadecadastro, tip.tipo, dis.dispositivo, loc.localizacao, dep.departamento, atend.ramal, atend.assunto, atend.descricao, atend.anexo , usu.login FROM atendimentos as atend inner JOIN usuarios as usu on atend.id = usu.id inner join tipoatendimento as tip on tip.id_tipoatendimento = atend.tipo inner join localizacao as loc on atend.localizacao = loc.id_localizacao INNER JOIN dispositivos as dis on atend.dispositivo = dis.id_dispositivo INNER JOIN departamentos as dep on atend.departamento = dep.id_departamento ");
echo "<table border='1'>";
echo "<tr><td></td>";
echo "<td>Ticket</td>";
echo "<td>Usuario</td>";
echo "<td>Data de Cadastro</td>";
echo "<td>Tipo</td>";
echo "<td>Dispositivo</td>";
echo "<td>Localização</td>";
echo "<td>Departamento</td>";
echo "<td>Ramal</td>";
echo "<td>Assunto</td>";
echo "<td>Descrição</td>";
echo "<td>Anexo</td>";
echo "<td>Ação</td>";
echo "<td>Baixa</td></tr>";

$i=0;

while($exibe = mysqli_fetch_assoc($sql)){
    $i = $i + 1;
    echo  "<tr><td><input type='checkbox' name='idtabela' value='[$i]'>"."</td>";
    echo  "<td>".$exibe["numeroticket"]."</td>";
    echo  "<td>".$exibe["login"]."</td>";
    echo  "<td>".$exibe["datadecadastro"]."</td>";
    echo  "<td>". $exibe["tipo"]."</td>";
    echo  "<td>". $exibe["dispositivo"]."</td>";
    echo  "<td>". $exibe["localizacao"]."</td>";
    echo  "<td>". $exibe["departamento"]."</td>";
    echo  "<td>". $exibe["ramal"]."</td>";
    echo  "<td>". $exibe["assunto"]."</td>";
    echo  "<td>". $exibe["descricao"]."</td>";
    echo  "<td>". $exibe["anexo"]."</td>";
    echo  "<td>". "<a href='chat_atendimento.php'>Responder</a>" ."</td>";
    echo  "<td>". "<a href='../login.html'>Baixar</a>" ."</td></tr>";

}
echo "</table>";


?>
Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      148716
    • Total Posts
      644534
×
×
  • Create New...