By GianYagami - Wed Jun 17, 2020 10:54 am
- Wed Jun 17, 2020 10:54 am
#828130
hi,
I found something might be interested.
I create this trigger:
I found something might be interested.
I create this trigger:
Code: Select all
modify dynaform variable inside of user created function makes the code error, I am using PM 3.3function test_function($USERNAME)
{
$query = "SELECT USR_UID FROM USERS WHERE USR_USERNAME = '$USERNAME'";
$res = executeQuery($query);
@@DeptHeadUID = $res['USR_UID'];
}
function test_function2()
{
$query = "SELECT USR_UID FROM USERS WHERE USR_USERNAME = 'GianYagami'";
$res = executeQuery($query);
@@DeptHeadUID = $res['USR_UID'];
}
function foo(){
return 2 + 2;
}
foo(); //he's cool
//test_function('GianYagami'); //he's not cool
//test_function2(); //this dude also not cool
//$array = new array("USERNAME" = "31406193");
//test_function3($array); //i forgot to make this one, lol