I have the following SQL which gives me the row Im after
SELECT *
FROM staff, staffemails
WHERE staff.users_use rname='$user'
and staff.staff_id = staffemails.sta ff_id
thing is I now want to perform an update on the result of this query. Ive tried
UPDATE staffemails
SET is_registered ='0'
WHERE staff.users_use rname = '$user'
and staffemails.sta ff_id = staff.staff_id
But that doesnt work!
Any ideas????
SELECT *
FROM staff, staffemails
WHERE staff.users_use rname='$user'
and staff.staff_id = staffemails.sta ff_id
thing is I now want to perform an update on the result of this query. Ive tried
UPDATE staffemails
SET is_registered ='0'
WHERE staff.users_use rname = '$user'
and staffemails.sta ff_id = staff.staff_id
But that doesnt work!
Any ideas????
Comment