I have a table
"search_log "
that logs all search by client
here are some of the fields query_date , query_result, query_code

here is the thing as the owner of the site I want to be able to see a user that searched four times in a row that has no result to be able to save them and stop the from being disappointed

if a client searches and there is no result it automatically inserts a data...