You are on page 1of 1

BOTON CONSULTAR

if(isset($_POST["B3"])){
...
...{
}

$id=$_POST["T1"];

$sql="select Id, Nombre, Contasena, Tipo from usuarios where Id='$id'";

$cs=mysql_query($sql,$con);

while($resul=mysql_fetch_array($cs)){
$idbd=$resul[0];
$nombd=$resul[1];
$conbd=$resul[2];
$tipobd=$resul[3];
}
}
?>
<?php
if(isset($_POST["b5"])) {
$btn=$_POST["b5"];
if($btn=="Consulta"){
}
$id=$_POST["t1"];
$sql="select idu, nombre, apellido, clase, nivel, telefono, pago
from clientes where idu='$id'";
$cs=mysql_query($sql,$con);
while($resul=mysql_fetch_array($cs)){
$idbd=$resul[0];
$nombd=$resul[1];
$apebd=$resul[2];
$clabd=$resul[3];
$nivbd=$resul[4];
$telbd=$resul[5];
$pagobd=$resul[6];
}
}

?>

You might also like