本文整理匯總了PHP中Requests::feedback_request方法的典型用法代碼示例。如果您正苦於以下問題:PHP Requests::feedback_request方法的具體用法?PHP Requests::feedback_request怎麽用?PHP Requests::feedback_request使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Requests
的用法示例。
在下文中一共展示了Requests::feedback_request方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Requests
if ($dResult[0] == "") {
$mysql = "insert into {$feedback_table} set rater_id='{$user_id}',rated_id='{$rated_id}',\n\t\t\t\t\t\t\tskill_id='{$skill_id}',value='{$value}',feedback_text='{$text}',status='{$status}',rated_date=now()";
} else {
$fid = $dResult['f_id'];
$mysql = "update {$feedback_table} set rater_id='{$user_id}',rated_id='{$rated_id}',\n\t\t\t\t\t\t\tskill_id='{$skill_id}',value='{$value}',feedback_text='{$text}',status='{$status}',\n\t\t\t\t\t\t\trated_date=now() where f_id='{$fid}'";
}
$db_object->insert($mysql);
}
if ($status == '1') {
echo $error_msg['cFeedbackSubmitted'];
}
if ($status == '0') {
echo $error_msg['cFeedbackSaved'];
}
include "footer.php";
exit;
}
}
$obj = new Requests();
$save = $post_var['save'];
$submit = $post_var['submit'];
if ($save) {
$status = "0";
$obj->update($db_object, $common, $post_var, $user_id, $error_msg, $status);
}
if ($submit) {
$status = "1";
$obj->update($db_object, $common, $post_var, $user_id, $error_msg, $status);
}
$obj->feedback_request($db_object, $common, $user_id, $default, $ratedid, $error_msg, $learning, $mode);
include "footer.php";