When to use PDO prepared queries. mysql_real_escape error?

To address the error you're receiving mysql_real_escape_string() requires an open connection via mysql_connect() . Because you don't have one, it's attempting to connect and failing (using a username of matthew whereas your PDO is connecting with root ). Additionally, you cannot (or shouldn't ) mix and match mysql_real_escape_string() and PDO - they're different libraries.

If you're using PDO, you should not be using mysql_real_escape_string. The PDO library has a very robust SQL placeholder method that does a much better job.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions