v5:session:reference:adodb_sess_conn
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Next revision | |||
— | v5:session:reference:adodb_sess_conn [2016/05/22 16:55] – created mnewnham | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== $ADODB_SESS_CONN ====== | ||
+ | This variable holds an instance of the database connection and can be used as required. The connection is itself an instance of a standard ADOdb connections, | ||
+ | ===== Usage ===== | ||
+ | <code php> | ||
+ | include_once ' | ||
+ | include_once " | ||
+ | |||
+ | $driver = ' | ||
+ | $host = ' | ||
+ | $user = ' | ||
+ | $pass = ' | ||
+ | $database = ' | ||
+ | |||
+ | ADODB_session:: | ||
+ | |||
+ | session_start(); | ||
+ | |||
+ | $_SESSION[' | ||
+ | |||
+ | /* | ||
+ | * Who else is connected? | ||
+ | */ | ||
+ | $SQL = " | ||
+ | $result = $ADODB_SESS_CONN-> | ||
+ | /* | ||
+ | * etc etc etc...... | ||
+ | */ | ||
+ | </ |
v5/session/reference/adodb_sess_conn.txt · Last modified: 2021/01/23 22:53 by mnewnham