sc_sql_injection({My_Field}) or ($My_Variable)
|
|
This macro is used to protect the field/variable against "SQL injection" attempts.
Macro used for protection against "SQL injection" in commands generated by the developer when using the macros: sc_lookup, sc_select, or sc_exec_sql.
Ex. 1: Protecting a local variable: $field_protect = sc_sql_injection({my_field});
Ex. 2: Protecting an user variable: $field_protect = sc_sql_injection($my_var);
Note: that all database accesses, generated for the Scriptcase, have protection against "sql injection".
|
Macro Scope
|
Blank application
|
calendar application
|
chart application
|
Grid application
|
Search application
|
Form application
|
Control Form
|
Menu application
|
Tree menu
|
ReportPDF application
|
allMacros onExecute
|
ajaxFieldonBlur ajaxFieldonChange ajaxFieldonClick ajaxFieldonFocus allMacros onAfterDelete onAfterInsert onAfterUpdate onBeforeDelete onBeforeInsert onBeforeUpdate onInit onLoadAll onRefresh onValidate onValidateFailure onValidateSuccess
|
allMacros onFooter onHeader onInit
|
ajaxFieldonClick allMacros onFooter onGroupBy onHeader onInit onNavigate onRecord
|
allMacros onFilterInit onFilterRefresh onFilterSave onFilterValidate
|
ajaxFieldonBlur ajaxFieldonChange ajaxFieldonClick ajaxFieldonFocus allMacros onAfterDelete onAfterDeleteAll onAfterInsert onAfterInsertAll onAfterUpdate onAfterUpdateAll onBeforeDelete onBeforeDeleteAll onBeforeInsert onBeforeInsertAll onBeforeUpdate onBeforeUpdateAll onClick onInit onLoadAll onNavigate onRecord onRefresh onValidate onValidateFailure onValidateSuccess
|
ajaxFieldonBlur ajaxFieldonChange ajaxFieldonClick ajaxFieldonFocus allMacros onInit onLoadAll onRefresh onValidate onValidateFailure onValidateSuccess
|
allMacros onExecute onLoad
|
allMacros onExecute onLoad
|
allMacros onFooter onHeader onInit onRecord
|
|