title: html options value with php variable
body: <p>I want put php date variable in html options value tag</p>
  
  <p>this is my code:</p>
  
  <pre><code>&lt;?php
  $servername = "localhost";
  $username = "root";
  $password = "123456789";
  $dbname = "db";
  // Create connection
  $conn = mysqli_connect($servername, $username, $password, $dbname);
  // Check connection
  if ($conn-&gt;connect_error) {
  die("Connection failed: " . $conn-&gt;connect_error);
  }
    if(isset($_POST['submit'])){
     $update = "UPDATE date SET date_end = '$choseMonth'";
  
              if ($conn-&gt;query($update) === TRUE) {}
  
    }
  ?&gt;
  
  
   &lt;form action="update.php&gt;" method="POST"&gt;
  
          Use month &lt;select name="choseMonth"&gt;
   &lt;option value="&lt;?php $today_date = date('Y/m/d')?&gt;"&gt;1 month + &lt;/option&gt;
              &lt;/select&gt;
  
          &lt;input type="submit" name="submit" value="Update"&gt;    
      &lt;/form&gt;
  </code></pre>
  
  <p>This code not work I don't know why .. I need put php variable in options value and I do that .. and when I look in MySql I see only 0000-00-00 I don't see date.</p>
  
  <p>Please if any one can help me with this. </p>
  
  <p>Thx</p>