v5:reference:connection:param
This is an old revision of the document!
param
Syntax
string param( string $name )
Description
The function param returns a database-specific placeholder for a prepared query statement.
This method is used with bind variable SQL statement execution, to produce injection resistant code.
Usage
/* * Connection to Oracle database */ print $db->param('account'); /* * prints ':account' */
/* * Connection to IBM DB2 database */ print $db->param('account'); /* * prints ? */
v5/reference/connection/param.1495041481.txt.gz · Last modified: 2017/05/17 19:18 by mnewnham