
28/06/2004, 12:39
|
 | | | Fecha de Ingreso: enero-2003 Ubicación: venus >> ((_\
Mensajes: 254
Antigüedad: 22 años, 1 mes Puntos: 1 | |
$name_check = "SELECT usr_login FROM tabla WHERE usr_login = '$usr_login'"; // check if username exists in database.
if (!($name_check)) print mysql_error();
$result = mysql_query($name_check);
$num_rows = mysql_num_rows($result);
if ($num_rows != 0)
{
echo "<font color='#FF0000'><b>Error </b></font><br>
<font color='red'> El usuario ".$_POST['usr_login']." ya existe, por favor intente con otro</font><br>
<a href='javascript:history.back(1);'>Regresar</a>";
//include 'registrar.php';
exit();
} |