本文整理匯總了PHP中dbConnect::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP dbConnect::init方法的具體用法?PHP dbConnect::init怎麽用?PHP dbConnect::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類dbConnect
的用法示例。
在下文中一共展示了dbConnect::init方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Poll
<?php
require_once 'libs/class.CookiesManager.php';
CookiesManager::init(1);
require_once 'libs/class.Poll.php';
require_once 'libs/class.Vote.php';
dbConnect::init();
//$CurrentPoll = new Poll;
//echo $CurrentPoll->getStatement();
//$CurrentPoll->setStatement("Polen zijn nodig voor onze economie");
//$CurrentPoll->setName('SimplePollv2');
//echo $CurrentPoll->getStatement();
//echo $CurrentPoll->getName();
//if (!is_object($TestVote = new Vote('82.171.43.213', 1))) {//82.171.43.213
// echo "false";
//} else {
// echo $TestVote->comment;
//}
//echo '<p>' . $CurrentPoll->addVote( 4, true,'Zukini') . '</p>';
$CurrentPoll = new Poll();
$yn = $CurrentPoll->addVote(5, true, 'Helemaal mee eens');
include 'includes/header.html';
echo $vyn;
include 'includes/footer.html';
?>