Attached is a php file I'm having trouble with. A live version can be found at http:jewishtreasures.com/zz.php
A variable, '$tt' determines if this is the first time through, tt==1, and opens the database and selects a random record if so.
tt==1 displays layer1, upon submission, layer2 is displayed, and $tt=$tt+1.
I want to hide the layers and reset $tt to zero upon a submission of layer2. I also want to set to $tt=0 when the "trivia" link is hit on the page, but I can't seem to do so: <? $tt=0?> is hit no matter where I try to hide it.
What am I doing wrong?
Thanks!
Ross