Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/08/2013, 00:19
Avatar de hhs
hhs
Colaborador
 
Fecha de Ingreso: junio-2013
Ubicación: México
Mensajes: 2.995
Antigüedad: 10 años, 10 meses
Puntos: 379
Respuesta: [Ayuda][PHP] Error con consulta.

En esta parte cambia el mysql_fetch_assoc por mysql_num_rows:http://www.php.net/manual/en/functio...l-num-rows.php
Código PHP:
Ver original
  1.                     {
  2.                         echo "Este usuario ya existe.";
  3.                     }
En esta seccion cambia el mysql_query por mysql_affected_row:http://www.php.net/manual/en/functio...ected-rows.php
Código PHP:
Ver original
  1. if (mysql_query($query))
  2.                             {
  3.                                 echo "El usuario fue registrado con éxito.";
  4.                             }
  5.                             else
  6.                             {
  7.                                 echo "Hubo un error en el registro.";
  8.                             }
__________________
Saludos
About me
Laraveles
A class should have only one reason to change.