Solo busco compara correo electrónico , RFC te coloco el código que tengo pero este solo lo hace con un dato correo electrónico
Código PHP:
Ver original<?php
//Conexi贸n con el servidor
/********* CONECTA CON LA BASE DE DATOS **************** */
/* ****************************************************** */
//ejecutamos la consulta
$SQL="Select*From DATOSFISCALES WHERE correo_electronico='".$_POST['correo']."'";
$correo_electronico=correo_electronico;
{
if ( $result){{
echo "<script>document.location.href='datos.php';</script>";}
}
}
if ($result)
{
echo "<table width='600' border='0' align='center'>
<tr><td><h3><font color='red'>SI SUS DATOS SON INCORRECTOS MODIFIQUE AHORA </td></h3></tr></font>
</table>
</tr>";
echo "<table width='150' border='0' align='left'>
<tr>
</td>
<tr>
<tr><td>RFC</td> </tr>
<tr><td>NOMBRE</td> </tr>
<tr><td>CALLE</td> </tr>
<tr><td>NO EXTERIOR</td> </tr>
<tr><td>NO INTERIOR</td> </tr>
<tr><td>CODIGO POSTAL</td> </tr>
<tr><td>COLONIA</td> </tr>
<tr><td>POBLACION</td> </tr>
<tr><td>ESTADO</td> </tr>
<tr><td>PAIS</td> </tr>
<tr><td>E-mail</td> </tr>
</table>
</tr>";
//obtenemos los datos resultado de la consulta
{
echo "<input type=text name=RFC size=50 value=".$row[1]."><br>";
echo "<textarea rows=1 cols=39 name=nombre >".$row[2]."</textarea><br>";
echo "<textarea rows=1 cols=39 name=calle >".$row[3]."</textarea><br>";
echo "<input type=text name=exterior size=50 value=".$row[4]."><br>";
echo "<input type=text name=interior size=50 value=".$row[5]."><br>";
echo "<input type=text name=codigo size=50 value=".$row[6]."><br>";
echo "<textarea rows=1 cols=39 name=colonia >".$row[7]."</textarea><br>";
echo "<textarea rows=1 cols=39 name=estado >".$row[8]."</textarea><br>";
echo "<textarea rows=1 cols=39 name=ESTADO >".$row[9]."</textarea><br>";
echo "<input type=text name=pais size=50 value=".$row[10]."><br>";
echo "<input type=text name=email size=50 value=".$row[11]."><br>";
}
}
?>
</p>
<p><input type="submit" name="guardar" value=" Guardar "><br>
</p>
</form>