title: How do i highlight the option value in select box using php
body: <p>I have  record set where iam looping through and displaying  options in select box if the  record contains a value as  status as "Y"
  than i have to display the option in red color </p>
  
  <pre><code>echo "&lt;select name='select1' size='10' multiple &gt;";
                          foreach ($this-&gt;arr['record'] as $rows) {
                              if($rows['status'] == "Y"){
                                  echo "&lt;option value='". $rows['COLA'] . '*' . $rows['COLB'] . "' bgcolor='#ff0000' style = 'bgcolor=red;font-size=5'&gt;".$rows['COLC'].":".$rows['COLD'].":".$rows['COLE'].":".$rows['COLF'].":".$rows['COLG']."&amp;nbsp;&lt;/option&gt;";
                              }else{
                                  echo "&lt;option value='". $rows['COLA'] . '*' . $rows['COLB'] . "' bgcolor='#ff0000' style = 'bgcolor=red;font-size=5'&gt;".$rows['COLC'].":".$rows['COLD'].":".$rows['COLE'].":".$rows['COLF'].":".$rows['COLG']."&amp;nbsp;&lt;/option&gt;";
                              }
  
                          }
  echo "&lt;/select&gt;";
  </code></pre>
  
  <p>Here if we have status  as "Y"  than we are want to highlight the entire option . I used the font tag but it is not working can you please tell us what to do </p>