Skip to main content
replaced http://us2.php.net with https://www.php.net
Source Link

You are using the wrong method:

$itmstmt->bindParam($key, $val); 

Should be:

$itmstmt->bindValue($key, $val); 

bindValuebindValue binds a value to a parameter, whereas bindParambindParam binds a parameter to the specified variable name

You are using the wrong method:

$itmstmt->bindParam($key, $val); 

Should be:

$itmstmt->bindValue($key, $val); 

bindValue binds a value to a parameter, whereas bindParam binds a parameter to the specified variable name

You are using the wrong method:

$itmstmt->bindParam($key, $val); 

Should be:

$itmstmt->bindValue($key, $val); 

bindValue binds a value to a parameter, whereas bindParam binds a parameter to the specified variable name

Source Link
Robert
  • 8.8k
  • 2
  • 29
  • 34

You are using the wrong method:

$itmstmt->bindParam($key, $val); 

Should be:

$itmstmt->bindValue($key, $val); 

bindValue binds a value to a parameter, whereas bindParam binds a parameter to the specified variable name