amigos, estoy creando un sistema de registro y la verdad no logro encontrar mi solucion se que es con mysql_fetch_array pero por algun motivo no me funciona :P llevo varias horas programando puede ser un causante favor ayuda (PD soy novato también).
Código PHP:
<?php
// conectar mysql
include("conexion.php");
// Recoger Variables
$usuario = $_POST['usuario'];
$clave = $_POST['clave'];
$reclave = $_POST['reclave'];
$email = $_POST['email'];
$reemail = $_POST['reemail'];
// Comparar Similitud
if($clave != $reclave) {
echo "<script language=\"JavaScript\">alert(\"Lo Sentimos, Las Claves Ingresadas no Coinciden\");</script>
<meta http-equiv=\"Refresh\" content=\"0; url=../registrar.php\">";
}
if($email != $reemail) {
echo "<script language=\"JavaScript\">alert(\"Lo Sentimos, Los E-mail Ingresados no Coinciden\");</script>
<meta http-equiv=\"Refresh\" content=\"0; url=../registrar.php\">";
}
// Comparar si usuario existe en base de datos
// AQUI MI PROBLEMA