I'm confused finding the difference between bind_param()
and bindParam()
as both are supported in PHP5 but one takes type as the first parameter and other takes a placeholder. Can someone give me an example of when to use one or the other?
bind_param is a method on mysqli_stmt:
mysqli_stmt - bind_param
bindParam is a method on PDOStatement:
PDOStatement - bindParam
The difference?
For more info look at this:
What is the difference between mysql, mysqli and pdo
bind_param() is mysqli and bindParam() is PDO. Apples and Oranges.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With