// run query
$db->query("
INSERT INTO xf_search_log
(search_date, user_id, username, search_query, forum_constraints, user_constraints, title_constraints, newer_than, result_count)
VALUES
('$searchDate', '$userId', '$username', '$searchQuery', '$forumConstraints', '$userConstraints', '$titleConstraints', '$newerThan', '$resultCount')
");
$db->query("
INSERT INTO xf_search_log
(search_date, user_id, username, search_query, forum_constraints, user_constraints, title_constraints, newer_than, result_count)
VALUES
('$searchDate', '$userId', '$username', '$searchQuery', '$forumConstraints', '$userConstraints', '$titleConstraints', '$newerThan', '$resultCount')
");
Search Log v2.5 changes:
Now using prepared statements.
Search Log v2.6 changes:
Updated PHP code.
Search Log v2.7 changes:
Updated PHP code.
Search Log v2.8 changes:
Now using prepared statements.
We use essential cookies to make this site work, and optional cookies to enhance your experience.