Ozzy47
Well-known member
Okay, in a addon I am working on to log user searches, I have this in the php file
Which will return searches with constraints like this,
Now if I change my PHP file to this
Returns the searches with constraints like this,
How I would like the constraints to be stored is like this,
PHP:
$data = $search['search_constraints'];
$searchConstraints = implode(", ",$data);
Which will return searches with constraints like this,
2020-01-15, 1, Ozzy47
Now if I change my PHP file to this
PHP:
$data = $search['search_constraints'];
$searchConstraints = json_encode($data);
Returns the searches with constraints like this,
{"newer_than":"2020-01-15","title_only":"1","users":"Ozzy47"}
How I would like the constraints to be stored is like this,
newer_than 2020-01-15, title_only 1, users Ozzy47
Last edited: