user = &quot;UPDATE user_rktn SET score='&quot;.$score.&quot;'and updated = NOW() WHERE id_auteur='&quot;.$userID.&quot;'&quot;;}
    else {
      $sqluser = &quot;INSERT INTO user_rktn (id, id_auteur, score, updated) VALUES ('','&quot;.$userID.&quot;','&quot;.$score.&quot;',NOW())&quot;;
    }
    $requser = mysql_query($sqluser) or die('Erreur SQL !&lt;br /&gt;'.$sqluser.'&lt;br /&gt;'.mysql_error());

    return 'ok';
  }

  function _docheckuser($userID,$sessionID)
  {
    $sql = 'SELECT count(*) FROM s