classes.other/PSM.php
// The where clause statement constructor.
The where clause statement constructor.
The where clause statement constructor .
public function where($clause, $raw = false, $binds = false)
        {
          if ($raw)
            {
              $this->tempstatement .= $raw;
              array_push($this->tempbinds, $binds);
            }
          else
            {
              $where_clauses = explode(' ', $clause);
              if (count($where_clauses) != 3) $psm->Error('<b>Where()</b> chain called', 'Not 2 spaces in statement, if using a special WHERE statement, please set 2nd param to \'true\' for raw input.');
              $this->tempstatement .= " WHERE {$where_clauses[0]} {$where_clauses[1]} ?";
              array_push($this->tempbinds, $where_clauses[2]);
            }
          return $this;
        }
public function where ( $ clause , $ raw = false , $ binds = false ) { if ( $ raw ) { $ this -> tempstatement .= $ raw ; array_push ( $ this -> tempbinds , $ binds ) ; } else { $ where_clauses = explode ( ' ' , $ clause ) ; if ( count ( $ where_clauses ) != 3 ) $ psm -> Error ( '<b>Where()</b> chain called' , 'Not 2 spaces in statement, if using a special WHERE statement, please set 2nd param to \'true\' for raw input.' ) ; $ this -> tempstatement .= "  WHERE  { $ where_clauses [ 0 ] } { $ where_clauses [ 1 ] }  ? " ; array_push ( $ this -> tempbinds , $ where_clauses [ 2 ] ) ; } return $ this ; }
The where clause statement constructor.
The where clause statement constructor .
// Raw WHERE statement supplied. // Easy manip WHERE statement supplied.