Jump to content
Fórum Script Brasil
  • 0

php - Abrir outra tela com o valor da tabela HTML


Oi pessoal, tudo bem...

Estou precisando clicar no valor ID de uma tabela html e abrir outra página (novapag.php) fazendo echo desse valor que cliquei, sou novato e só conheço um pouco de php e HTML



 $pesquisaunid = $_SESSION['Unidade'];
 $pesquisa = $_SESSION['Senha'];


 $sql = "SELECT ID, CPF,  Freada, Curva FROM tabela";
 $resultado = mysqli_query($strcon,$sql) or die("Erro ao retornar dados");
 $row = mysqli_num_rows($resultado);

 while ($registro = mysqli_fetch_array($resultado)) {
   $cpf = $registro['CPF'];
   $freada = $registro['Freada'];
   $curva = $registro['Curva'];
   $idautoinc = $registro['ID'];


   echo "<tr>";
   echo "<td>".$cpf."</td>";
   echo "<td align='center'>".$freada."</td>";
   echo "<td align='center'>".$curva."</td>";
   echo "<td><a href='novapag.php'</a>".$idautoinc."</td>";
   echo "</tr>";
 } mysqli_close($strcon); 
 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.

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
    • Total Posts
  • Create New...