Ver Mensaje Individual
  #5 (permalink)  
Antiguo 26/09/2010, 18:41
expecimen
 
Fecha de Ingreso: octubre-2006
Ubicación: Ciudad Ojeda, Venezuela
Mensajes: 123
Antigüedad: 18 años, 4 meses
Puntos: 0
Respuesta: Busqueda que se valla a pagina02.php

Cita:
Iniciado por ylellan Ver Mensaje
pon un header corazon:

Código PHP:
<?php 
$conexion
=mysql_connect(DB_HOSTDB_USERDB_PASSWORD) or 
die(
"Problemas en la conexion"); 

mysql_select_db(DB_DATABASE,$conexion) or 
die(
"Problemas en la selección de la base de Inmueble"); 
$registros=mysql_query("select * from casa where Ipadron='$_REQUEST[Ipadron]'",$conexion) or 
die(
"Problemas en el select:".mysql_error()); 
if (
$reg=mysql_fetch_array($registros)) 


else 
header("location:tu_pag.php");
mysql_close(); 
?>
Hola bonita hice lo que me recomendaste pero me sale el siguiente error:

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\sedemat\LISTO\intranet\inmueble\sed e\consulta\consultaestado.php:7) in C:\AppServ\www\sedemat\LISTO\intranet\inmueble\sed e\consulta\pagina02.php on line 19

la linea 19 es: header("location:pagina01.php");