I was just wondering if it is possible to do a query based on the status of a record, and if one is found with the status of 'E'arned, then to return the relevant fields from that record while at the same time changing the status to 'P'laced...
I guess I'm asking if you can do a SELECT and a conditional UPDATE based on the results of the SELECT, in a single query..?
Sort of a combination of these two into a single query.
SELECT ent_id, mem_id, from_step, from_pos FROM step1_reentry WHERE status='E' LIMIT 1 UPDATE step1_reentry SET status='P', last_update='".$created."' WHERE ent_id = '$entry'
And then be able to do the processing based on the information retrieved from the query
Hope that makes sense
Any assistance would be greatly appreciated.