Ver Mensaje Individual
  #7 (permalink)  
Antiguo 07/11/2012, 09:44
hycq_69
 
Fecha de Ingreso: febrero-2012
Ubicación: Cagua Estado Aragua
Mensajes: 34
Antigüedad: 12 años, 2 meses
Puntos: 0
Respuesta: Envio de Variable por URL utilizando Header

ese Valor lo obtengo de aqui $total=mysql_fetch_array($sql);
$fila['id'] vendría siendo el id del cliente que se supone que ya esta registrado... Te muestro el codigo de nuevo

Código PHP:
Ver original
  1. <?
  2. include "../conexion/conexion.php";
  3.  
  4. $sql=mysql_query("select id, ced_rif,nombre from clientes where ced_rif=".$_POST['ced_rif']."",$idconn);
  5.  
  6.  
  7. //$total=mysql_fetch_array($sql);
  8.  
  9.  if(mysql_num_rows($sql)>0)  
  10. {
  11.     $total=mysql_fetch_array($sql);
  12.     //$id_cliente=$fila['id'];
  13.     header("location:factura_activa.php?id=".$fila['id']);
  14.     exit;
  15. }
  16. else
  17. {
  18.     header("location:form_nuevo_cliente.php");
  19.     exit;
  20. }
  21. mysql_close($idconn);
  22.  
  23.  
  24. ?>