v5:reference:connection:qstr
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
reference:qstr [2015/07/19 06:59] – created mnewnham | v5:reference:connection:qstr [2018/07/16 19:38] – start functions lowercase peterdd | ||
---|---|---|---|
Line 2: | Line 2: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
<WRAP right box> | <WRAP right box> | ||
+ | == See Also == | ||
+ | [[v5: | ||
== Syntax == | == Syntax == | ||
string qStr( | string qStr( | ||
- | | + | |
+ | | ||
) | ) | ||
</ | </ | ||
==== Description ==== | ==== Description ==== | ||
- | The function '' | + | The function '' |
+ | - Wrapped in single quotes.The value can then be used, for example in an SQL statement. | ||
+ | - Have quotes inside the string escaped in a way that is appropriate for the database. This is done wherever possible using PHP driver functions e.g. [[http:// | ||
+ | |||
+ | ------------------------------ | ||
==== Usage ==== | ==== Usage ==== | ||
<code php> | <code php> | ||
Line 16: | Line 23: | ||
$SQL = " | $SQL = " | ||
- | $result = $db->Execute($SQL); | + | $result = $db->execute($SQL); |
/* | /* | ||
Line 30: | Line 37: | ||
$SQL = " | $SQL = " | ||
- | $result = $db->Execute($SQL); | + | $result = $db->execute($SQL); |
/* | /* | ||
- | * Execution | + | * Execution |
*/ | */ | ||
</ | </ | ||
- | |||
v5/reference/connection/qstr.txt · Last modified: 2021/01/25 02:59 by mnewnham