title: store retrieved value in a variable php mysql
body: <pre><code>$check="SELECT timestamp 
          FROM med_buy
          WHERE patient_id='$pid' AND med_id='$mid'
          ORDER BY timestamp DESC";
  </code></pre>
  
  <p>i am using this code i want to store the topmost value returned from the data base
  And i want to chcek the timestamp with the current day please help me.</p>