![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/05/2008, 19:23
|
![Avatar de argy](http://static.forosdelweb.com/customavatars/avatar200552_1.gif) | | | Fecha de Ingreso: octubre-2007 Ubicación: Longitud 75º Latitud 18º Sur
Mensajes: 614
Antigüedad: 17 años, 3 meses Puntos: 18 | |
Respuesta: evaluar un valor de un input de tipo text si parece que esta bien , yo le agregaria un empty
asi
if(empty(mysql_fetch_array($existe))){
echo "EXISTE";
}else{
echo "NO EXISTE";
}
ademas en la consulta debe de haber u poco de seguridad como este
$variab=mysql_real_escape_string($variab);
sprintf("SELECT variab FROM tabla WHERE variab='%s';",$variab) |