I’m going to be displaying an array of rows per page and every time a row shows up on the page i want it to add 1 “hit” to its row impression count. but it seems like there might be a better way than to upon echo do a whole mysql_query function for each listing. is there a way to upon retrieval add 1 to all rows in the query?
Share
Get all the unique id’s from your initial select command, then from PHP store them in a comma separated string and use the IN function of mysql. Something like:
That will update all the rows with just 1 query.