I am currently doing a query with php to bring me a specific data of the user that is being used, I have the following, but it brings me the first data that it finds from that column (company), and not the user-related one logged in at the moment.
<?php
$consulta = "SELECT * FROM wck_usuarios";
$ejecutar = mysql_query($consulta, $link);
$i = 0;
while($fila = mysql_fetch_array($ejecutar))
{
$id = $fila['id'];
$empresa = $fila['empresa'];
$i++;
?>
<input class="refor" type="text" name="empresa" readonly="" value="<?php echo utf8_encode($empresa); ?>">
<?php
}
mysql_close();
?>