![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
04/08/2013, 00:19
|
![Avatar de hhs](http://static.forosdelweb.com/customavatars/avatar516628_2.gif) | Colaborador | | Fecha de Ingreso: junio-2013 Ubicación: México
Mensajes: 2.995
Antigüedad: 11 años, 7 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 { echo "Este usuario ya existe."; }
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 { echo "El usuario fue registrado con éxito."; } else { echo "Hubo un error en el registro."; }
__________________ Saludos About me Laraveles
A class should have only one reason to change. |