Hi all,
i have problem IF condition, on scriuptcase
On control (validate), i have IF condition to control query
===================================
$nama_user = sc_sql_injection({nama_user});
$hak_akses = sc_sql_injection({hak_akses});
$sql=’’;
if ({hak_akses} == ‘All’)
{
sc_error_message ("==");
$sql = “update dbo.master_users_apps set
priv_access=‘Y’,
priv_insert=‘Y’,
priv_delete=‘Y’,
priv_update=‘Y’,
priv_export=‘Y’,
Priv_print=‘Y’
where login= “. $nama_user;
}
else
{
sc_error_message (”<>”);
$sql = "update a set
priv_access = ‘Y’,
a.priv_insert = ‘Y’,
a.priv_delete = ‘Y’,
a.priv_update = ‘Y’,
a.priv_export = ‘Y’,
a.priv_print = ‘Y’
from dbo.master_users_apps a
inner join dbo.master_apps b
on a.app_name = b.app_name
where b.description= $hak_akses and a.login= ". $nama_user;
}
sc_lookup(rs, $sql);
===========================
if condition
if ({hak_akses} == ‘All’) this output from sc_error message show <> (input data = All)
but if i use = (single =) output from sc_error_message still sgow == ( input data <> All)
why function IF condition not running in my case ?
Regards
Iwan Setiawan