本文整理汇总了PHP中COMMONFUNC::parse_yturl方法的典型用法代码示例。如果您正苦于以下问题:PHP COMMONFUNC::parse_yturl方法的具体用法?PHP COMMONFUNC::parse_yturl怎么用?PHP COMMONFUNC::parse_yturl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类COMMONFUNC
的用法示例。
在下文中一共展示了COMMONFUNC::parse_yturl方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: COMMONFUNC
//for paging
$func = new COMMONFUNC();
$db = new DB();
$fldAthleteid = isset($_REQUEST["fldAthleteid"]) ? $_REQUEST["fldAthleteid"] : 0;
$fldYoutubelink = "";
$fldYoutubeModifiedDate = "";
$youID = "";
$error_msg = "";
if ($fldAthleteid > 0) {
$query = " Select * from " . TBL_ATHELETE_REGISTER . " where fldId = '{$fldAthleteid}'";
$db->query($query);
$db->next_record();
//$fldAthleteid = $db -> f('fldId');
$fldYoutubelink = $db->f('fldYoutubelink');
$fldYoutubeModifiedDate = $db->f('fldYoutubeModifiedDate');
$youID = $func->parse_yturl($fldYoutubelink);
}
if ($_POST['isSubmit'] == 'save') {
$nowToday = date('Y-m-d H:i:s');
$where = "fldId = '{$fldAthleteid}'";
$New_youID = $func->parse_yturl($func->input_fun($_POST['fldYoutubelink']));
if (trim($New_youID) == trim($youID)) {
$strDataArr = array('fldYoutubelink' => $func->input_fun($_POST['fldYoutubelink']), 'fldYoutubeModifiedDate' => $nowToday);
} else {
$strDataArr = array('fldYoutubelink' => $func->input_fun($_POST['fldYoutubelink']), 'fldYoutubeModifiedDate' => $fldYoutubeModifiedDate);
}
$db->updateRec(TBL_ATHELETE_REGISTER, $strDataArr, $where);
$error_msg = '<div class="thankyoumessage" style="margin-right:29px;">YouTube Link updated successfully.<a href="#" onclick="javascript:self.close();" class="normalbtn" style="float:right; text-decoration:none;">Close</a></div>';
}
/* if (count($error_msg)==0)