本文整理汇总了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";