Using PHP I am querying a MYSQL database and returning 4 results. These results represent the ID of 4 rows.
I now want to run another PHP query that will identify a field named Counter for each of the row ID’s and increment it by 1. Seems pretty simple using arrays and a loop, but I’m not sure how to approach this in PHP. Any help would be appreciated!
Do it in one:
Or possibly without a subquery, I don’t know your starting query or data.