I want to set background color based on user preference that's in a database.
I set a variable named $bc from the session variable I saved from the row.
If I echo the either the session variable ($_SESSION['backcolr']) or the new variable ($bc), the correct value of yellow appears. However, if I try to use either variable with jQuery, it doesn't work. Not sure what I'm doing wrong.
<script type="text/javascript">
// $('#body').css(background-color','yellow') -- this works
$("body").css("background-color",'$bc'); --- this doesn't work
</script>