title: update query php
body: <p>I have this function:</p>
  
  <pre><code>function updateinfos($id) {
      parametrs();
      $Log_query = mysql_query("SELECT max(recent) FROM song") or die(mysql_error());
      $Res_user = mysql_fetch_array($Log_query);
      $max = $Res_user[0] + 1;
      $Log_query2 = mysql_query("UPDATE song SET recent = '$max' AND number = number + 1 WHERE id = '$id'") or die(mysql_error());
  }
  </code></pre>
  
  <p>I have a problem in the query update, because it doesn't work and I don't know why.</p>