usa esto haber si te sirve:
Código PHP:
Ver original<?
include "../conexion/conexion.php";
$sql=mysql_query("select id, ced_rif,nombre from clientes where ced_rif=".$_POST['ced_rif']."",$idconn);
if($total>0)
{
//$id_cliente=$resultado['id'];
header("location:factura_activa.php?id=".$resultado['id']); }
else
{
header("location:form_nuevo_cliente.php"); }
?>