classes.other/PSM.php
// Loops the wanted tempstatement and tempbinds.
Loops the wanted tempstatement and tempbinds.
Loops the wanted tempstatement and tempbinds .
public function run(callable $looper, $debug = false)
        {
          if ($debug)
            {
              echo "<p><b>DEBUG data (kills script after display): [statement&binds]</b></p>";
              echo "<p>{$this->tempstatement}</p>";
              $this->display($this->tempbinds);
              exit;
            }
          if (count($this->tempbinds) == 0)
            $q = $this->cquery( $this->tempstatement );
          else
            $q = $this->cquery( $this->tempstatement, $this->tempbinds );
          foreach ($q->fetchAll() as $row)
          $looper($row);
        }
public function run ( callable $ looper , $ debug = false ) { if ( $ debug ) { echo " <p><b>DEBUG data (kills script after display): [statement&binds]</b></p> " ; echo " <p> { $ this -> tempstatement } </p> " ; $ this -> display ( $ this -> tempbinds ) ; exit ; } if ( count ( $ this -> tempbinds ) == 0 ) $ q = $ this -> cquery ( $ this -> tempstatement ) ; else $ q = $ this -> cquery ( $ this -> tempstatement , $ this -> tempbinds ) ; foreach ( $ q -> fetchAll ( ) as $ row ) $ looper ( $ row ) ; }
Loops the wanted tempstatement and tempbinds.
Loops the wanted tempstatement and tempbinds .
// No binding of query. // Binding of query.