Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/03/2014, 08:24
Avatar de andyvedder
andyvedder
 
Fecha de Ingreso: julio-2013
Ubicación: Todas Partes
Mensajes: 27
Antigüedad: 10 años, 9 meses
Puntos: 1
Pregunta Respuesta: validaciones para un boton

buenos días amigo el código que tengo es el siguiente pero el botón sigue apareciéndome habilitado te muestro mi código para corregir el error.
<?php
include_once("../Data_Base/conectar_bd.php");

conectar_bd();
session_start();

$strConsulta = "SELECT cantidad_acumulada, nivel FROM cliente where cedula='17728773'";
$resultado =pg_query($strConsulta);
$usuario = "";

if( $fila = pg_fetch_array($resultado) )
$usuario = $fila['cantidad_acumulada'];

$estado = ($usuario == 2) ? 'disabled': '';
echo "<input type='button' value='imprimir' <?php echo $estado;?>";


?>