Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/06/2008, 12:56
leonar2445
 
Fecha de Ingreso: mayo-2008
Mensajes: 63
Antigüedad: 16 años
Puntos: 1
Respuesta: ¿Asesoramiento de un IF?

hermano tengo esto


$conn=pg_connect("host=localhost port=5432 password=1234 user=postgres dbname=usuarios")
or die("Problemas en la conexion");

$result = pg_query($conn, "SELECT * from registro where usu='$_REQUEST[b]' and pass='$_REQUEST[c]'");
$rows = pg_fetch_array($result);
if(pg_num_rows($result)>0){
echo("<script>window.alert('BIENVENIDO AL SISTEMA')</script>");
header('refresh: 3; URL=dpersonales.php')?>;

<?php

}
else {
echo("<script>window.alert('NO ESTA REGISTRADO EN SISTEMA')</script>"); ?>
</a>
<? return;}

pg_close($conn);



Y me da este error

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\comparacion.php:8) in C:\AppServ\www\comparacion.php on line 9
;