After the last update of Scriptcase the global variable doesn’t work.
In my login form on validate I’ve this code:
$usr = {user};
$pwd = {password};
$sql = “SELECT
user,
password,
IDdipendente
FROM
dipendenti
WHERE
(user = '”.$usr."’) AND
(password = ‘".$pwd."’)";
sc_lookup(ds, $sql);
if (isset({ds[0][0]}))
{
$usr_login = {ds[0][2]};
sc_set_global($usr_login);
sc_redir(menu)
}
else
{
echo “Nome utente o password errati”;
}
and in the application I use [usr_login]. And has always worked. But after last update It doesn’t work.
somebody can help me?