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*

8
  • but if you see my code, i need add WHERE clause dynamically, ie add where clause to the query if the variable is true. Commented Feb 29, 2016 at 1:39
  • oh I got it, I answered wrongly. Let me edit my answer Commented Feb 29, 2016 at 1:41
  • @Manux22 there, take a look Commented Feb 29, 2016 at 1:46
  • oh! i'm st*pid xD. Its easy :P. Thanks! (PD: with bindParam didn't work but with bindValue works fine). Commented Feb 29, 2016 at 2:14
  • @Manux22 why doesn't it work with bindParam? You getting an error? Something eludes me here? Commented Feb 29, 2016 at 2:38