Hi
I’m creating several user apps protected with a control app
I need to know how to do in every application if I want a user to see only his records.
By now, when a user logs in, can see the details of another users (in every app)
This is the code set in the event “on validate” in the login application
$usr = {Usuario};
$pwd = {Contrase?a};
$sql = “SELECT
Usuario,
Password
FROM
dasm_Usuarios
WHERE
(Usuario = '”.$usr."’) AND
(Password = ‘".$pwd."’)";
sc_lookup(ds, $sql);
if (isset({ds[0][0]}))
{
sc_redir(Usuarios_Crear);
}
else
{
echo “Usuario o contrase?a incorrectos”;
}
It works, but I need the user to see only his own records, and by now can see all user data
Can anyone rewrite it for me with a solution? (will it work with all my app?)
Can you help me?
Thanks