v5:reference:connection:connect
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| v5:reference:connection:connect [2022/02/12 18:14] – [Description] use of setConnectionParameter() dregad | v5:reference:connection:connect [2023/05/07 10:37] (current) – Better return value description (boolean, not mixed) dregad | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| [[v5: | [[v5: | ||
| == Syntax == | == Syntax == | ||
| - | mixed connect( | + | bool connect( |
| | | ||
| | | ||
| Line 21: | Line 21: | ||
| The traditional description of the connection parameters is as follows: | The traditional description of the connection parameters is as follows: | ||
| - | ------------------------------------- | + | |
| ^ Parameter 1 ^ Parameter 2 ^ Parameter 3 ^ Parameter 4 ^ | ^ Parameter 1 ^ Parameter 2 ^ Parameter 3 ^ Parameter 4 ^ | ||
| | $hostName | | $hostName | ||
| Line 27: | Line 27: | ||
| However the actual values of the parameters for some databases are such that the actual requirements can be confusing. See the [[v5: | However the actual values of the parameters for some databases are such that the actual requirements can be confusing. See the [[v5: | ||
| - | If the connection is made, $db becomes a database connection object that can be used until the script ends. If the connection | + | If the connection is made, $db becomes a database connection object that can be used until the script ends. |
| + | |||
| + | === Return value === | ||
| + | |||
| + | The method returns //true// if the connection | ||
| To debug the connection, set the value '' | To debug the connection, set the value '' | ||
v5/reference/connection/connect.1644686054.txt.gz · Last modified: by dregad
