Jump to content

mtarroyo

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mtarroyo's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. If you use PDOStatement::bindParam() to replace the parameter marks, the variables are passed by reference and if there are any return value, they will fill the variables. So, you can pass only variable containers. Like this: $stmt->bindParam(1, $name); Because strings cannot be passed by reference. Using PDOStatement::bindValue() the values are not passed by reference and you can do things like that: $stmt->bindValue(1, 'Mario');
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.