posts.select Test Start

setCredentials("USERNAME","API KEY"); $Client->setDebug($newdebuglevel); $Client->setSSLVerifyPeer(false); $Client->setSSLVerifyHost(false); $Client->return_type = "phpvals"; //forces return of page.get_one as php values $SiteName = "SITENAME"; ////////////test code ////////////code doesn't include error checking $siteobj = new WikidotSite($SiteName, $Client); $returnarray = array(); echo "

posts.select example



"; //change the setSite method call to your site $siteobj->setSite("SITENAME"); $pcriteria = array(); //change the $pcriteria['page'] to your forum page that contains the threads $pcriteria['page'] = "FORUM"; $pcriteria['thread'] = ""; $siteobj->php_posts_select($criteria, $returnarray); foreach($returnarray as $key=>$data){ echo $key.": ".$data."
";} ?>