Hi all,
Not to sure if this should be in this section or the Database section, so sorry if I have posted it in the wrong section.
I have 2 table which I extract data using the query below. This works fine. What I want to do is run an update query that updates all the record that the original query returned.
My first query.
SELECT
members.
member_id, title, name_f, name_l, company_name, houseno, street, city, state, zip, country, added,
payments.product_id, payments.completed, payments.processed
FROM members JOIN payments
WHERE members.member_id = payments.member_id
AND payments.processed = 0
AND payments.completed = 1
AND payments.product_id IN (18,19,20,21,4,5,3)
Is it possible to run a second query that updates the "payments.processed " feild which by default is set to 0, and update all the records in the first result to 1.
All I want to do is update just the one feild and leave the data in all the pther feild intact.
Many thansk if you can advise.