title: Adding 1 day to NOW() in php
body: <p>I'm trying to add 1 day to the current time in my sql database using a php script and then store this value back into the database. To do this I am doing the following, however the $newdate variable doesn't get stored when I attempt to use a mysqli query to store it in my database. </p>
  
  <pre><code>$time = mysqli_query($conn,"SELECT NOW() FROM cities");
  $curr_time = mysqli_fetch_array($time);
  $curr_date = $curr_time['NOW()'];
  $newdate = strtotime ( '+1 day' , strtotime ( $curr_date) ) ;
  $newdate = date ( 'Y-m-j' , $newdate );
  </code></pre>