classes.other/PSM.php
/* Function that will return the the row count of the query, the query set, and the raw query.
      - Meant for if you're doing work that would normally require multiple lines to do. */
Function that will return the the row count of the query, the query set, and the raw query.
Meant for if you're doing work that would normally require multiple lines to do.
Function that will return the the row count of the query the query set and the raw query . Meant for if you ' re doing work that would normally require multiple lines to do .
public function data($statement, $binds)
          {
            $q = $this->cquery($statement, $binds);
            $set  = $q->fetch(PDO::FETCH_ASSOC);
            $rows = $q->rowCount();
            $ret = [
              'query'     => $q,
              'rowcount'  => $rows,
              'queryset'  => (object) $set,
              'set'       => (object) $set,
              'statement' => $statement,
              'binds'     => $binds
            ];
            $ret = (object) $ret;
            return $ret;
          }
public function data ( $ statement , $ binds ) { $ q = $ this -> cquery ( $ statement , $ binds ) ; $ set = $ q -> fetch ( PDO :: FETCH_ASSOC ) ; $ rows = $ q -> rowCount ( ) ; $ ret = [ 'query' => $ q , 'rowcount' => $ rows , 'queryset' => ( object ) $ set , 'set' => ( object ) $ set , 'statement' => $ statement , 'binds' => $ binds ] ; $ ret = ( object ) $ ret ; return $ ret ; }
Function that will return the the row count of the query, the query set, and the raw query.
Function that will return the the row count of the query the query set and the raw query .