I have a mysql query that selects a number of records
SELECT
leads.Affiliate_ID,
leads.first_name,
leads.last_name,
leads.email,
leads.loan_purpose,
leads.home_tel,
leads.mobile_tel,
leads.postcode,
leads.house_num,
leads.app_time,
leads.new_application_date,
leads.payment_accepted,
leads.sms
FROM
leads
WHERE
leads.Affiliate_ID = '23' AND
leads.sms IS NULL AND
leads.payment_accepted IS NULL AND
leads.new_application_date < (NOW() - INTERVAL 5 DAY)
how do I now update leads.sms
to 1
on all selected records
Any help or suggestions would be great