PostNuke Help

Previous
pnConfigSetVar

Home
up

Next
pnDBGetTables


pnDBGetConn

get database connection

Synopsis

array pnDBGetConn();

Description

pnDBGetConn() obtains database connection handles for direct querying of the PostNuke database.

Return Values

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.

Notes

Future versions of the PostNuke API might supply extra connection information through this function, to allow for features such as replicated or failover databases.

Examples

// Get database connection
list($dbconn) = pnDBGetConn();
       

See Also

pnDBGetTables()


Previous
pnConfigSetVar

Home
up

Next
pnDBGetTables