162k views
2 votes
To execute a prepared SQL statement, you can use the _______ and execute methods of the PDOStatement object to set parameter values and execute the statement.

1 Answer

4 votes

Answer:

To execute a prepared SQL statement, you can use the bindValue

Step-by-step explanation:

In PHP, the bindValue () function is inbuilt and can be used to bind values and variables to a parameter, hence it is more versatile. In SQL, the bindValue () function ties value to question mark placeholder or corresponding named in order to adequately get the statement ready.

User DrummerMann
by
4.3k points