Query preparation interface

This defines the public methods for preparing a query and the different parts of the query.

category Database
package Formaid
author Dieter Adriaenssens
copyright 2006-2013 Dieter Adriaenssens
license GPL
link http://formaid.sourceforge.net/

 Methods

Formats an sql-field (f.e.

prepareSqlField(string $field) : string

name of database or table), for use in an SQL query.

Parameters

$field

string

database or table name

Returns

stringformatted field name

Format a value for an sql statement

prepareSqlValue(string $value) : string

Parameters

$value

string

value of a variable to be used in an SQL string

Returns

stringescaped string