Unclassified NewsBoard Code Reference

UnbGetLastPost function

Get one or more last posts depending on given parameter

function UnbGetLastPost ($where, $withAccess = true);

Parameters:

where
(int) thread ID
(array) array of thread IDs [multi-record output]
(string) SQL WHERE section (e.g. "User=...")
withAccess  –  optional, default: true
(bool) Respect access rights, return first accessible post.
Only valid for where = (string), ignored otherwise

Return value:

(array) post record row
(array(array)) multiple post record rows [multi-record output]

Remarks:

Pay attention to correct string/integer type! You may need to use intval() or strval()

Implementation file: unb_lib/common.lib.php, line 2781

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.