Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • It returns Invalid parameter number: no parameters were bound in "$result = $stmt ->fetchColumn();" Commented Jan 16, 2017 at 16:03
  • That's because you need to bind the parameters, use the execute you already had in the question: $stmt->execute(array(':UserEmail' => $data)); Commented Jan 16, 2017 at 16:04
  • 1
    Oh I see now! Thank you for clearing that up and taking your time! Commented Jan 16, 2017 at 16:08