Example #1
0
 static function change_sudo($conid, $content, $where = null, $columns = null)
 {
     $where = sql_use_f::$data_id . "=" . $conid . $where;
     if ("+1" == $content) {
         return sql_use_f::update_addone($where);
     } elseif ("-1" == $content) {
         return sql_use_f::update_delone($where);
     } else {
         return sql_use_f::update_one($columns, $content, $where);
     }
 }