title: To select a specific column from a table using php postgres
body: <p>I have table of 5000+ rows and 8+ columns like,</p>
  
  <pre><code>Station Lat Long    Date    Rainfall    Temp    Humidity    Windspeed
  Abcd    -   -   09/09/1996  -   -   -   -
  Abcd    -   -   10/09/1996  -   -   -   -
  Abcd    -   -   11/09/1996  -   -   -   -
  Abcd    -   -   12/09/1996  -   -   -   -
  Efgh    -   -   09/09/1996  -   -   -   -
  Efgh    -   -   10/09/1996  -   -   -   -
  Efgh    -   -   11/09/1996  -   -   -   -
  Efgh    -   -   12/09/1996  -   -   -   -
  </code></pre>
  
  <p>I am developing a web application, in that user will select a column like rainfall/temp/humidity and for a particular date. </p>
  
  <p>Can anyone guide me how to query for this in php-postgres. (database:postgres, table:weatherdata, user:user, password:password)</p>
  
  <p>Thanks in advance.</p>