error_reporting(E_ALL);on all my pages.
I'd like to know how to define a variable. I thought that you just had to assign something to it?
I'm getting the following error on my page:
Notice: Undefined variable: bg in /home/domains/dizzie.co.uk/user/htdocs/php/pages.php on line 39
Now line 39 looks like this:
$bg = ($bg == "#CCFF99" ? "#CCCC99" : "#CCFF99");
Now the first $bg is attempting to have something assigned to it, I'm assuming it's the 2nd $bg in that row that php has the problem with, but don't know how to get around this. If I just add
$bg = "null";on the line before it, it's fine, but is there a better way to do this?