PostNuke Help |
||
|---|---|---|
Previous |
Next |
|
get database connection
array pnDBGetConn();
pnDBGetConn() obtains database connection handles for direct querying of the PostNuke database.
This function returns an array of database connection values. At current the only active value is the first one, which should be used for all database interaction.
Future versions of the PostNuke API might supply extra connection information through this function, to allow for features such as replicated or failover databases.
// Get database connection
list($dbconn) = pnDBGetConn();
Previous |
Next |