PDA

View Full Version : Allowing Users to change background color on their custom page.


woofy
12-08-2009, 08:31 PM
I want to know if this is possible. I thought I would be able to create a table in the database and give it a default color, then allow users to update it by entering the color code have it inserted into the record and then displayed as a background color in the "main content" section of their page. The problem I am running into is I will have to have some combination of PHP and CSS and I don't even know if it's possible. Any suggestions?

edbr
12-08-2009, 11:44 PM
easiest maybe with online styles perhaps style background-color = " <?php echo $row['color']; ?> "
using your db value
this is simplified of course not knowing your setup/layout