v5:reference:connection:param
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
v5:reference:connection:param [2017/05/17 19:16] – mnewnham | v5:reference:connection:param [2018/07/21 02:08] – [Usage] mnewnham | ||
---|---|---|---|
Line 2: | Line 2: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
<WRAP right box> | <WRAP right box> | ||
+ | ==See Also== | ||
+ | [[v5: | ||
== Syntax == | == Syntax == | ||
string param( | string param( | ||
Line 9: | Line 11: | ||
===== Description ===== | ===== Description ===== | ||
The function param returns a database-specific placeholder for a prepared query statement. | The function param returns a database-specific placeholder for a prepared query statement. | ||
+ | |||
+ | This method is used with [[v5: | ||
------------------------------ | ------------------------------ | ||
===== Usage ===== | ===== Usage ===== | ||
Line 29: | Line 33: | ||
*/ | */ | ||
</ | </ | ||
+ | <code php> | ||
+ | /* | ||
+ | * Connection to Postgres database | ||
+ | */ | ||
+ | print $db-> | ||
+ | /* | ||
+ | * prints $1 | ||
+ | */ | ||
+ | </ | ||
+ | |||
v5/reference/connection/param.txt · Last modified: 2021/02/26 01:35 by dregad