v5:reference:connection:param
This is an old revision of the document!
param
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.1495041555.txt.gz · Last modified: 2017/05/17 19:19 by mnewnham