title: Outputting status as a number, code to change colour
body: <p>I have added a 'status' column into my table and inputed numbers for them to be shown along with the id and content.</p>
  
  <pre><code>    $res_array = array();
      // fetch all the entires one by one
      while($row=mysql_fetch_array($res)){
          // put query result in php array
          $array = array('id' =&gt; $row['id'],
                         'content' =&gt; $row['content'],
                         'status'=&gt; $row['status']); 
  
          // add into the big array
  
  
          $res_array[] = $array;  
      // update the list view
  for (var i=0; i&lt; res.length; i++){
      $("&lt;li/&gt;", {"id": res[i].id, "text": res[i].content + res[i].status}).appendTo(todo.list);
      // Extend the width if msg is too long
      if(res[i].content.length &gt;= 35){
          $('#'+res[i].id).css("height","50px");
      }
  }
  </code></pre>
  
  <p>Above you can see how it is being displayed, i still cannot get teh if statement to change the colour of the content.</p>
  
  <p>I want the content to change colour depending on the status number.
  I dont know the code but i would imageine it would be an if statement for the status, but i need help
  Thanks in advance. </p>