v5:reference:connection:setconnectionparameter
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
v5:reference:setconnectionparameter [2016/01/13 02:31] – ↷ Page moved from reference:setconnectionparameter to v5:reference:setconnectionparameter mnewnham | v5:reference:connection:setconnectionparameter [2021/03/10 11:50] – Document need to use predefined constants for mysqli and add example dregad | ||
---|---|---|---|
Line 3: | Line 3: | ||
<WRAP right box> | <WRAP right box> | ||
== Syntax == | == Syntax == | ||
- | | + | From ADOdb Version 5.21.0 |
- | | + | |
void setConnectionParameter( | void setConnectionParameter( | ||
string $parameterName, | string $parameterName, | ||
Line 13: | Line 12: | ||
The function '' | The function '' | ||
- | If used in a portable environment, | + | If used in a portable environment, |
+ | |||
+ | On MySQL, // | ||
+ | |||
===== Usage ===== | ===== Usage ===== | ||
<code php> | <code php> | ||
/* | /* | ||
- | * Connecting to DB2 Database | + | * Connecting to a MySQL database |
*/ | */ | ||
+ | $db = ADONewConnection(' | ||
+ | $db-> | ||
+ | $db-> | ||
+ | /* | ||
+ | * Connecting to DB2 Database | ||
+ | */ | ||
$db-> | $db-> | ||
$db-> | $db-> | ||
- | |||
/* | /* | ||
- | * Connecting to a SQL Server database | + | * Connecting to a SQL Server database |
- | */ | + | */ |
$db-> | $db-> | ||
$db-> | $db-> | ||
</ | </ | ||
+ |
v5/reference/connection/setconnectionparameter.txt · Last modified: 2022/07/13 03:47 by mnewnham