Confusion between bindValue() and bindParam()?
I am confuse between these two functions Bindvalue() and BindParam() I read on php.net it does not escape % and _ , so be careful when using LIKE . So i think BindValue() is not used when we are using LIKE query. when we using LIKE query BindParam() is used. Because as i know BindParam can escape these % and _ . BindValue() doesn't gives protection against sql injection. I am not sure about this, is it true? friends tell what i mention in these 3 points is right or wrong. i am beginner in PDO so please explain it clearly .. There should be no difference in how values are escaped or not escaped