Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/08/2011, 14:11
Feligo
 
Fecha de Ingreso: agosto-2011
Mensajes: 100
Antigüedad: 12 años, 8 meses
Puntos: 1
Respuesta: pg_fetch_array

Código PHP:
Ver original
  1. $usu = $_POST["txt_usuario"];
  2.     $pass = $_POST["txt_contrasena"];
  3.     $consultar = pg_query($con,"select * from USUARIO where NOMBRE = '$usu' and CLAVE = '$pass'") or die('La consulta fallo: ' . pg_last_error());
  4.     while($rs = pg_fetch_array($consultar,0,PGSQL_BOTH)){
  5.     echo $rs[0];