CodeCharge Studio

ToSQL Method (PHP)

Applies to

Connection Object

Syntax

<connection>->ToSQL(Value, DataType)

Return value

Depends on the specifed Data Type

Parameters

Name Type Description Required
Value any Value to be converted to SQL compatible format. Yes
DataType The data type to which the value will be formatted. You can use any one of the predefined constants: ccsDate, ccsBoolean, ccsInteger, ccsFloat, ccsText, ccsMemo Desired data type. Yes

Description

This method formats values based on the specified data type in order to make them SQL compatible.


On-line, printable versions and updates