title: Can't set the row class in DataTables
body: <p>I am using DataTables with PHP and MySQL with great results but I'm having lots of troubles setting up the classes of the row.
  My SQL table have a column named "class_style" which contain some values like "blue_class", "green_class", "red_class", ...</p>
  
  <p>My target is to declare this class name on every row of the results so I can (for example) show "red_class" rows with red background, something like this example <a href="http://www.datatables.net/release-datatables/examples/basic_init/zero_config.html" rel="nofollow">http://www.datatables.net/release-datatables/examples/basic_init/zero_config.html</a> where the  are show in red.</p>
  
  <p>The code I thought would work is the following:</p>
  
  <pre><code>echo "&lt;tbody&gt;";
      for($i=0; $i &lt; $number_of_results; $i++){
          echo "&lt;tr class='" . mysql_result($result, $i, 'class_style') . "'&gt;";;
              echo "&lt;td&gt;" . mysql_result($result, $i, 'family_name') . "&lt;/td&gt;";
              echo "&lt;td&gt;" . mysql_result($result, $i, 'team') . "&lt;/td&gt;";
          echo "&lt;/tr&gt;";           
      };
  echo "&lt;/tbody&gt;";
  </code></pre>
  
  <p>when I open the page with the browser each row of the table is being shown with the following class:</p>
  
  <pre><code>&lt;tr class='odd'&gt;
  &lt;tr class='even'&gt;
  </code></pre>
  
  <p>Even if I use a less automatized solutions like the following</p>
  
  <pre><code>echo "&lt;tbody&gt;";
      for($i=0; $i &lt; $number_of_results; $i++){
          echo "&lt;tr class='my_class'&gt;";;
              echo "&lt;td&gt;" . mysql_result($result, $i, 'family_name') . "&lt;/td&gt;";
              echo "&lt;td&gt;" . mysql_result($result, $i, 'team') . "&lt;/td&gt;";
          echo "&lt;/tr&gt;";           
      };
  echo "&lt;/tbody&gt;";
  </code></pre>
  
  <p>all the classes became</p>
  
  <pre><code>&lt;tr class='my_class odd'&gt;
  &lt;tr class='my_class even'&gt;
  </code></pre>
  
  <p>how could I get a solution of this problem? I'd like to reach the following results:</p>
  
  <pre><code>&lt;tr class='green_class'&gt;
      &lt;td&gt;Smith&lt;/td&gt;
      &lt;td&gt;the Duck&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr class='red_class'&gt;
      &lt;td&gt;Jackbson&lt;/td&gt;
      &lt;td&gt;Big great team&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr class='green_class'&gt;
      &lt;td&gt;Awaiters&lt;/td&gt;
      &lt;td&gt;the flowers&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>