This topic is locked

field_event

4/9/2025 3:26:06 AM
PHPRunner General questions
J
jacques author

Hi,

My field_event worked in the previous version.
Does anyone have some experience with V11?
I can't get it to work anymore.

SERVER
$data = $ajax->getCurrentRecord();
$_ID = $data["tbl_ID"];
$_changed = $data["changed"];

if($_changed == 1){
DB::Exec("UPDATE tblTable SET changed = 0 WHERE tbl_ID = ".$_ID);
}else{
DB::Exec("UPDATE tblTable SET changed = 1 WHERE tbl_ID = ".$_ID);
}

CLIENT AFTER
location.reload();

gr

Jacques

Sergey Kornilov admin 4/10/2025

I suggest that you troubleshoot this a bit by printing your SQL query. This may point you in the right direction.