;&amp; $responseuser[1] != '' ) {
      $response[&quot;success&quot;] = false;
      $response[&quot;codeValue&quot;] = '0';
      return $response;
    }else {
      if ($responseuser[0] == '' ){
        $response[&quot;success&quot;] = false;
        $response[&quot;codeValue&quot;] = '0';
        return $response;
      } else {
        $sqluser = &quot;UPDATE code SET id_auteur='&quot;.$userID.&quot;' ,date_used = NOW() WHERE code='&quot;.$code.&quot;'&quot;;
        $requser = mysql_query($sqluser) or