follow us on google+ follow us feedburner


can't use prepare statement with easy php

Posted by: FrenchTouch
September 19, 2013 05:41PM

i have to use prepare statement. See this example :

$requete = $bdd->prepare('SELECT * FROM docmodification WHERE :test ="ZLB"');

but it doesn't run correctly. If i replace :test by the real name, it runs correctly :

$requete = $bdd->prepare('SELECT * FROM docmodification WHERE module ="ZLB"');

I have php 5.4. I think i have a bad configuration. If you have an idea, thks
Options: ReplyQuote

Your Name: 
Your Email: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.