SQL Injections

First, I could never get the query parameters to work. Does the above query work for you?

Eg of mine

Never works.

Another one for easy understanding

No idea what I am doing wrong here.

Secondly, What about MySql?