I already show the values of my database in my table correctly but I would like that if I select the option with the id = 1 show the information with an echo related to that information, something like this is my code:
<?PHP
//esto es un ejemplo , la información funciona
//correctamente y trate de no saturar con código de mas
$id = el numero id de usuario;
$telefono = el teléfono del usuario
?>
Here is my select
<select>
//** aqui ya tengo que el $id corresponda al usuario **
<option value="">select</option>
<option value="<?PHP echo $id; ?>">Pablo</option> //id =1
<option value="<?PHP echo $id; ?>">Diego</option> //id =2
</select>
Followed by my select I would like to display a message based on the option you choose
<?php
if ($id == '1') { echo 'el telefono de Pablo es :' . $telefono; }
if ($id == '2') { echo 'el telefono de Diego es :' . $telefono; }
else{ echo 'aqui no se muestra nada'; } ?>