Some maintenance is scheduled for today which requires LiveJournal to be down briefly. Please see this post for details.

Дон Карлос (kastaneda) wrote,
function buildWhereFieldClause($condition = false, $value = "", $field ="", $result = "", $clause = "=", $operator = "AND") {
    if ($condition){
        if (strlen($result)) {
            $result .= " ".$operator." ";
        }
        $result .= $field." ".$clause." ".( ($clause=="NOT IN" || $clause=="IN")? "({$value})" : $this->SqlString($value) );
    }
    return $result;
}
Tags: wtf
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded  

  • 6 comments