-1
I need to click on the ID value of an html table and open another page (novapag.php) making echo of this value I clicked, I’m new and only know a little of php and HTML
<?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>";?>
It worked out! Thank you very much!
– rodrigueslogst