title: Php pdo display enum values in dropdown
body: <p>i am trying below code to display list of enum values in select dropdown box.
  but its displaying only dropdown box, but values are not displaying....</p>
  
  <p>tablename = tbl_users, column name = userStatus</p>
  
  <pre><code>&lt;select&gt;
  &lt;?
      $stmt = $user_home-&gt;runQuery('SHOW COLUMNS FROM '.tbl_users.' WHERE field="'.userStatus.'"');
         while($data = $stmt-&gt;fetch()) {
              foreach(explode("','",substr($row[1],6,-2)) as $option) {
                  print("&lt;option&gt;$option&lt;/option&gt;");
              }
          }
  ?&gt;
  &lt;select&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/0pT9h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0pT9h.png" alt="enter image description here"></a></p>
  
  <p>Note : I really tried lot before posting question here &amp; i am new to php coding, still learning....</p>