title: How to get a specific column's name in mySQL if a specific condition is true?
body: <p>I have a table in mySQL whose structure is as given below with a single row of data</p>
  
  <pre><code>info     R1    R2    R3      R4      R5         ( Columns)
  ------------------------------------------   
  Percent  80    90    70      85      69         (Data)
  </code></pre>
  
  <p>My app is to take attedance in a lecture which stores the attendance data and the overall percentage in the above format. </p>
  
  <p>I need to retrieve the column name if the percent is below 75% ? How do I do this using a Php script? Which mySQL query should I use? </p>