Jump to content
Fórum Script Brasil
  • 0

php - Abrir outra tela com o valor da tabela HTML


Question

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

image.png.b276f65f989c92db0692665f7c474c8f.png

 

<?php 
session_start();
 include_once("conectbusca.php"); 
 $pesquisaunid = $_SESSION['Unidade'];
 $pesquisa = $_SESSION['Senha'];

 

 <?php 
 $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.

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