title: MySQL to php temp result
body: <p>I've created a MySQL database which logs the date and time in one column and the current temp in another column, the temperature is checked every 10 mins via cron-e, all this works great but I'm really struggling to write or find some php to retrieve the last temp recorded, I have found a php that get all the data and tried to alter the query but just end up with [] displayed on page and no temps.</p>
  
  <p>I'm sorry if this is a basic question, but I'm really struggling with this code learning.</p>