Es formatqv
From EventScripts Community Encyclopedia
|
[edit] OverviewSyntax: Note: Command parameters are described inside the
< and > characters. Optional parameters are contained within [ and ] characters.Variation of this command that doesn't expand variables: es_xformatqv [edit] DescriptionFormats a string according to the format-string escaping all special characters to be used in an SQL query, and stores it into the variable. [edit] Parameters
[edit] ExamplesThis example demonstrates the usage of es_formatqv es_xsetinfo querystring 0 es_xsetinfo pname 0 es_getplayername pname event_var(userid) // Name can contain some hazardous characters for SQL queries, es_formatqv takes care of them for you: es_xformatqv querystring "INSERT INTO stable VALUES ('%1');" pname es_sql query sampledb server_var(querystring)
[edit] Notes
[edit] See also |
