public static function update($sqlstatement, array $data = [])
    {
        static::verifyConnection();

        if (preg_match("/^update\s[\w\d_`]+\s\bset\b\s.+\s\bwhere\b\s.+$/i", $sqlstatement)) {
            return static::executePrepareQuery($sqlstatement, $data);
        }

        return false;
    }
public static function update($sqlstatement, array $data = [])
    {
        static::verifyConnection();

        if (preg_match("/^update\s[\w\d_`]+\s\bset\b\s.+\s\bwhere\b\s.+$/i", $sqlstatement)) {
            return static::executePrepareQuery($sqlstatement, $data);
        }

        return false;
    }
public static function update ( $ sqlstatement , array $ data = [ ] ) { static :: verifyConnection ( ) ; if ( preg_match ( "/^update\s[\w\d_`]+\s\bset\b\s.+\s\bwhere\b\s.+$/i" , $ sqlstatement ) ) { return static :: executePrepareQuery ( $ sqlstatement , $ data ) ; } return false ; }
Execute an UPDATE request

@param  string $sqlstatement
@param  array  $data
@return bool
Execute an UPDATE request