ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:prepare

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
v5:reference:connection:prepare [2016/11/02 12:44]
dregad [prepare] add link to comparison matrix
v5:reference:connection:prepare [2019/08/09 15:42] (current)
dregad [Usage] Fix execute call per https://github.com/ADOdb/ADOdb/issues/543
Line 25: Line 25:
 <code php> <code php>
 /* /*
- * Connection to Oracle database+* Connection to Oracle database
 */ */
  
Line 33: Line 33:
  
 /* /*
-Send an array to execute+Execute the prepared statement
 */ */
-$result = $db->​execute(array($handle,​$bindVariables));+$result = $db->​execute($handle,​ $bindVariables);​
 </​code>​ </​code>​
  
 For compatibility purposes, if the database does not support prepared statements, the SQL statement is returned into the ''​$handle''​ variable. When sent to the ''​execute()''​ function, ​ The statement will be parsed to include the variables, and the statement will execute the same as if passed without parameters, and as if the DBMS supported prepared statements. For compatibility purposes, if the database does not support prepared statements, the SQL statement is returned into the ''​$handle''​ variable. When sent to the ''​execute()''​ function, ​ The statement will be parsed to include the variables, and the statement will execute the same as if passed without parameters, and as if the DBMS supported prepared statements.
  
v5/reference/connection/prepare.txt · Last modified: 2019/08/09 15:42 by dregad