title: Getting first day of month from a selected month
body: <pre><code>$selectedmonth = '09';
  $selectedyear = '2019';
  $selecteduser = '1';
  </code></pre>
  <p>Let say i have variable like above and my mysql query like this</p>
  <pre><code>SELECT `USERID`, `CHECKTIME` 
  FROM `checkinout` 
  WHERE 
      USERID='$selecteduser' AND 
      YEAR(CHECKTIME)= '$selectedyear' AND
      MONTH(CHECKTIME)='$selectedmonth';
  </code></pre>
  <p>How do i modify my mysql query to search for the record for selectedmonth and first day of next month of the selectedmonth ?</p>