title: Session variable not recognized
body: <p>I am working on a PHP system that shows the schedule of students. I have a database and a table in a PHP file in Dreamweaver, all connected. However, i get stuck when i want to show the next day of the schedule. There is a table column in MySQL called 'day', with a value of 1 to 5 for monday to friday. </p>
  
  <p>In the beginning of the Dreamweaver code, i added this:</p>
  
  <pre><code>    session_start();
         if (!isset($_SESSION["currentday"])){
             $_SESSION["currentday"] = 1;
         }
  </code></pre>
  
  <p>I added two arrows to the PHP page to go to the next or previous day. However, the database doesn't seem to recognise the session variable. Part of the query is:</p>
  
  <pre><code>... AND lesson.day='$currentday'
  </code></pre>
  
  <p>When I run the page, this is the result: 
  *<em>Notice: Undefined variable: currentday in E:*</em></p>