I have an array which contains numbers like "331,554,22" or it could be "45", lets say the array is called $numbers.
I want to loop through the array and for each number or entry in it, do a SQL query like
UPDATE members SET x=1 where id=$numbers[x]
Could someone help me along?
UPDATE: Also, say I store the query values in a text field in my database called nums and it looks like eg. "45,656,23", how would I convert that to an array format?
explode()it first, then you will have an array. Just asking.