I'm trying to allow a user to select a background of their choice when they login but i am not sure how to do this.
I have already set backgrounds to choose from and i have a bg colum with a default of 1 in my table but i am not sure how to tell my database how to work with it.
WHat im trying to do:
if bg = 1 then default background
if bg = 2 then tree background
if bg = 3 then cat background
That is what i am after. When someone is not logged in i would like it to be the default background until they login and then for it to change to the background they chose earlier once logged in.
Make any sense?
I have already set backgrounds to choose from and i have a bg colum with a default of 1 in my table but i am not sure how to tell my database how to work with it.
WHat im trying to do:
if bg = 1 then default background
if bg = 2 then tree background
if bg = 3 then cat background
That is what i am after. When someone is not logged in i would like it to be the default background until they login and then for it to change to the background they chose earlier once logged in.
Make any sense?