I am trying figure out how to set all records to 0 apart from one record, this is to be set to 1.
i.e
I have a bunch of images/records each assigned a radio button.
The user should pick one to feature on the front page.
But all the other records must equal 0 apart from the user's chosen image/record this is to be 1.
Can't seem to get my head round it to come up with a successful sql statement.
Can anyone suggest anything?
Thanks