本文整理匯總了PHP中connect::insert方法的典型用法代碼示例。如果您正苦於以下問題:PHP connect::insert方法的具體用法?PHP connect::insert怎麽用?PHP connect::insert使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類connect
的用法示例。
在下文中一共展示了connect::insert方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: isset
<?php
require_once 'constants.php';
require_once 'connect.php';
require_once 'vendor/autoload.php';
use Xuma\Bfxm\Builder;
$step = isset($_POST['step']) ? $_POST['step'] : 1;
$caller = isset($_POST['caller']) ? $_POST['caller'] : false;
$returnVal = isset($_POST['returnVal']) ? $_POST['returnVal'] : false;
switch ($step) {
case 1:
$bfxm = new Builder();
$bfxm->play($soundWelcome)->gather(["min_digits" => 1, "max_digits" => 1, "max_attempts" => 3, "ask" => ".{$soundDecralation}.", "play_on_error" => ".{$soundWrongKey}.", "variable_name" => "returnVal"])->build(true);
break;
case 2:
$bfxm = new Builder();
$bfxm->play($soundClosing)->dial(10)->build(true);
$connect = new connect($servername, $dbname, $username, $password);
$connect->insert($caller, $returnVal);
break;
default:
die("Unexpected Error!!");
break;
}