User Tools

Site Tools


libraries:databaseconnector:databaseconnectorclass:sqlgetpreparedlines

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
libraries:databaseconnector:databaseconnectorclass:sqlgetpreparedlines [2023/03/02 16:05] michael.pohllibraries:databaseconnector:databaseconnectorclass:sqlgetpreparedlines [2023/03/31 19:21] (current) michael.pohl
Line 7: Line 7:
  
 <code php> <code php>
-Array SqlGetPreparedLines ( /* ... */ )+Array SqlGetPreparedLines ( [$ParameterArray = NULL] )
 </code> </code>
  
 ===== Parameters ===== ===== Parameters =====
  
-   Any number of parameters which should replace the '?' placeholders in the prepared statement+   **$ParameterArray** //Array (optional)// \\ One dimensional array with values to replace the ''?'' placeholders or key-value pairs to replace the '':name'' placeholders
  
 ===== Returns ===== ===== Returns =====
Line 33: Line 33:
  
 // Getting the result with two numeric parameters // Getting the result with two numeric parameters
-$arrResult = $DB->SqlGetPreparedLines(1970, 2011);+$arrResult = $DB->SqlGetPreparedLines( array(1970, 2011);
  
 if ($arrResult  === FALSE ) if ($arrResult  === FALSE )
libraries/databaseconnector/databaseconnectorclass/sqlgetpreparedlines.txt · Last modified: 2023/03/31 19:21 by michael.pohl