本文整理匯總了PHP中mysql_class::update方法的典型用法代碼示例。如果您正苦於以下問題:PHP mysql_class::update方法的具體用法?PHP mysql_class::update怎麽用?PHP mysql_class::update使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類mysql_class
的用法示例。
在下文中一共展示了mysql_class::update方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: strtotime
include hopedir . '/lib/function.php';
include hopedir . '/wx/mysql_class.php';
header("Content-Type:text/html;charset=utf-8");
$Printer = NetPrinterClass::getInstance();
$mysql = new mysql_class();
logwrite('答應測試');
if (isset($Printer->params['id']) && isset($Printer->params['sta'])) {
if ($Printer->checkinput()) {
// echo 'sign right';
// $this->mysql->update(Mysite::$app->config['tablepre'].'wxback',$data,"id='".$id."'");
$orderid = $Printer->params['id'];
// usr=355841021188485&id=0003&ord=2&sta=0&sgn=E04A80BE97167584E7452FF54865171E
if ($Printer->params['sta'] == 0) {
if (!empty($orderid)) {
$data['is_print'] = 1;
$mysql->update($Mconfig['tablepre'] . 'order', $data, "id='" . $orderid . "'");
}
} else {
$data['orderid'] = $orderid;
$data['status'] = $Printer->params['sta'];
$mysql->insert($Mconfig['tablepre'] . 'printlog', $data);
}
} else {
echo 'sign wrong';
}
} else {
//usr
if (isset($Printer->params['usr']) && !empty($Printer->params['usr'])) {
$nowtime = strtotime(date('Y-m-d', time()));
//當天最小時間
$maxtime = strtotime(date('Y-m-d', time()) . ' 23:59:59');