classes.other/PSM.php
// Initial SELECT statement to get the selection accessor.
Initial SELECT statement to get the selection accessor.
Initial SELECT statement to get the selection accessor .
public function select($selection_array)
        {
          $this->tempstatement = '';
          $this->tempbinds     = [];
          if (!is_array($selection_array))
            $selection_array = [$selection_array];
          if (count($selection_array) > 2) $this->Error('<b>Select()</b> chain called', 'Input Array > 2 entries');
          if (count($selection_array) == 2)
            $this->tempstatement = "SELECT {$selection_array[1]} FROM {$selection_array[0]}";
          else
            $this->tempstatement = "SELECT * FROM {$selection_array[0]}";
          return $this;
        }
public function select ( $ selection_array ) { $ this -> tempstatement = '' ; $ this -> tempbinds = [ ] ; if ( ! is_array ( $ selection_array ) ) $ selection_array = [ $ selection_array ] ; if ( count ( $ selection_array ) > 2 ) $ this -> Error ( '<b>Select()</b> chain called' , 'Input Array > 2 entries' ) ; if ( count ( $ selection_array ) == 2 ) $ this -> tempstatement = " SELECT  { $ selection_array [ 1 ] }  FROM  { $ selection_array [ 0 ] } " ; else $ this -> tempstatement = " SELECT * FROM  { $ selection_array [ 0 ] } " ; return $ this ; }
Initial SELECT statement to get the selection accessor.
Initial SELECT statement to get the selection accessor .