I have a site where user's searches are tagged with their user id. Right now, if a different user searches a duplicate, it adds +1 to a count field I have, yet, it still keeps the original user's id who searched it.
How can I start making an "array" of user ID's for the userId field in my table on a duplicate search.
$sql="INSERT INTO trending (searchstring, timecount, userSearch) VALUES('$_POST[contentVar]', NOW(), '$uid') ON DUPLICATE KEY UPDATE count = count + 1";
searchstring is the user search, timecount is time, userSearch is the user ID of the user who searched it.