Global/SQLStr

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Initial Creation)
m (Also menu state)
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
|Name=SQLStr
 
|Name=SQLStr
 
|Parent=Global
 
|Parent=Global
|Description=Returns the input value in an escaped form so that it can safely be used inside of queries. The returned value is surrounded by quotes unless noQuotes is true. Alias of [[sql/SQLStr]]
+
|Description=Returns the input value in an escaped form so that it can safely be used inside of queries. The returned value is surrounded by quotes unless noQuotes is true. Alias of {{LibraryFunction|sql|SQLStr}}
+
|Realm=Shared and Menu
|Realm=Shared
+
 
|IsClass=No
 
|IsClass=No
 
}}
 
}}
Line 20: Line 19:
 
{{Ret
 
{{Ret
 
|type=string
 
|type=string
|desc=escaped input
+
|desc=Escaped input
 
}}
 
}}

Latest revision as of 16:57, 10 July 2016

 SQLStr( )

Contents

Description

Returns the input value in an escaped form so that it can safely be used inside of queries. The returned value is surrounded by quotes unless noQuotes is true. Alias of sql.SQLStr

Arguments

string input

String to be escaped

Arguments

boolean noQuotes=false

Whether the returned value should be surrounded in quotes or not

Returns

string

Escaped input
Personal tools
Navigation