-1
I’m developing a web system. In this system I have tables with many columns since they are a lot of information, to reduce this I selected the most important information to be displayed and put in this table, but if the user needs to consult ALL the information, I need to have this option for him, for this I wanted to take the code that is in a td of this table to use as a restriction parameter at the time to select which will display all the information of a particular employee for example.
Table Code
$result_funcionario = "SELECT * FROM tb_funcionarios"; $resultado_funcionario = mysqli_query($con, $result_funcionario); ?> <table cellpadding="0" cellspacing="0" border="0" class="table table-bordered" id="hidden-table-info"> <thead > <tr> <th> </th> <th >Código</th> <th class="">Nome</th> <th class="-">CPF</th> <th class="">RG</th> <th class="">Celular</th> <th class="">Salário</th> <th class="">Situação</th> </tr> </thead> <tbody> <?php while ($row_funcionario = mysqli_fetch_assoc($resultado_funcionario)) { ?> <tr class=""> <td class=""><a href="testex.php"><img src="lib/advanced-datatable/images/details_open.png"></a></td> <td class="" name="codigo_func"><?php echo $row_funcionario ["codigo_funcionario"]; ?></td> <td class="" name="nome_func"><?php echo $row_funcionario ["nome_funcionario"]; ?></td> <td class=""><?php echo $row_funcionario ["cpf_funcionario"]; ?></td> <td class=""><?php echo $row_funcionario ["rg_funcionario"]; ?></td> <td class=""><?php echo $row_funcionario ["celular_funcionario"]; ?></td> <td class=""><?php echo $row_funcionario ["salario_funcionario"]; ?></td> <td class=""><?php echo $row_funcionario ["situacao_funcionario"]; ?></td> </tr> <?php } ?>
In this case, I need to take the value contained within the td function_name so that on the textex.php page I can display the values only about the employee that I capture the id
will need to use jquery
– user60252
If there is an answer that solved your problem mark it as accepted, see https://i.stack.Imgur.com/evLUR.png
– user60252