irm/lib/MDB.php
/**
     * Tell whether a query is a data manipulation query (insert,
     * update or delete) or a data definition query (create, drop,
     * alter, grant, revoke).
     *
     * @param   string   $query the query
     * @return  boolean  whether $query is a data manipulation query
     * @access public
     */
Tell whether a query is a data manipulation query (insert,
update or delete) or a data definition query (create, drop,
alter, grant, revoke).

@param   string   $query the query
@return  boolean  whether $query is a data manipulation query
@access public
Tell whether a query is a data manipulation query ( insert update or delete ) or a data definition query ( create drop alter grant revoke ) . @param string $query the query @return boolean whether $query is a data manipulation query @access public
function isManip($query)
    {
        $manips = 'INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|
                  ALTER|GRANT|REVOKE|LOCK|UNLOCK|ROLLBACK|COMMIT';
        if (preg_match('/^\s*"?('.$manips.')\s+/i', $query)) {
            return(TRUE);
        }
        return(FALSE);
    }
function isManip ( $ query ) { $ manips = 'INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|
                  ALTER|GRANT|REVOKE|LOCK|UNLOCK|ROLLBACK|COMMIT' ; if ( preg_match ( '/^\s*"?(' . $ manips . ')\s+/i' , $ query ) ) { return ( TRUE ) ; } return ( FALSE ) ; }
Tell whether a query is a data manipulation query (insert,
 update or delete) or a data definition query (create, drop,
 alter, grant, revoke).
Tell whether a query is a data manipulation query ( insert update or delete ) or a data definition query ( create drop alter grant revoke ) .