本文整理匯總了PHP中dbstuff::affected_rows方法的典型用法代碼示例。如果您正苦於以下問題:PHP dbstuff::affected_rows方法的具體用法?PHP dbstuff::affected_rows怎麽用?PHP dbstuff::affected_rows使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類dbstuff
的用法示例。
在下文中一共展示了dbstuff::affected_rows方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
}
}
if(count($array_findbanned) > 0) {
foreach($array_findbanned as $value) {
if(preg_match($value,$subject.$message)) {
$displayorder = '-1';
break;
}
}
}
if($displayorder < 0) {
if($displayorder == '-2' && $first == 0) {//如成立就移到審核回複
$posts_mod ++;
mysql_query("UPDATE {$tablepre}posts SET invisible = '$displayorder' WHERE pid = $pid");
} else {
if($db->affected_rows($db->query("UPDATE {$tablepre}threads SET displayorder = '$displayorder' WHERE tid = $tid and displayorder >= 0")) > 0) {
$displayorder == '-2' && $threads_mod ++;
$displayorder == '-1' && $threads_banned ++;
}
}
}
$subject = preg_replace($array_find,$array_replace,addslashes($subject));
$message = preg_replace($array_find,$array_replace,addslashes($message));
if($subject != addslashes($row['subject']) || $message != addslashes($row['message'])) {
if(mysql_query("UPDATE {$tablepre}posts SET subject = '$subject', message = '$message' WHERE pid = $pid")) {
$convertedrows ++;
}
}
$converted = 1;
}
//查詢threads表