Cita:
Iniciado por nuevoconphp
De esta forma no me da error pero tampoco me reconoce el e-mail.
Cuando uso to primer codigo me da el sqte error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@hotmail.com' at line 1
lo q tengo en la primera linea es mi coneccion con la base de datos. Estoy completamente seguro q no tiene q ver con la coneccion.
Sino con la funcion "GetSQLValueString"
gracias por estar ayudando
ya lo arregle, aqui esta para quien le interece:
cambie:
Código HTML:
$LoginRS__query=sprintf("SELECT usuario, pass_usuario, nivel_acceso FROM adminis WHERE usuario=%s AND pass_usuario=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
por:
Código HTML:
$LoginRS__query=sprintf("SELECT usuario, pass_usuario, nivel_acceso FROM adminis WHERE usuario=%s AND pass_usuario=%s",
GetSQLValueString($loginUsername, "long"), GetSQLValueString($password, "text"));
mas arriva estaba el codigo este y no se me habia ocurrido mirarlo y es donde esta la respuesta:
Código HTML:
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
gracias a todos por su ayuda una ves mas