This topic is locked

$keys

5/28/2018 2:53:45 AM
PHPRunner General questions
R
Rigmantas author

Hi,

In PHPRunner 9.8 do not work $keys after record added events. I used it in previous versions.

There is my code:

global $conn;
// get information about uploaded files

$fileArray = my_json_decode($values["foto"]);

// rename each file. In this example - convert to lowercase.

for($i = 0; $i < count($fileArray); $i++)

{

//echo $fileArray[$i]["usrName"];

//$fileArray[$i]["usrName"] = strtolower($fileArray[$i]["usrName"]);

$strSQLInsert1 = "insert ignore into `foto_det` (`foto_id`, `foto_det`, `foto_dth`, `useris`) VALUES('".$keys['id']."', '".$fileArray[$i]["name"]."', '".$fileArray[$i]["thumbnail"]."', '".$_SESSION["Useris"]."')";

db_exec($strSQLInsert1,$conn);

}

echo "kejus: ".$keys["id"];//there is nnothing - in database i have '0'

exit;



Regards,

Rimantas