follow us on google+ follow us feedburner

FORUM
We will close this forum soon. Please, now use Stack Overflow. Don't forget to add the tag "easyphp" to your post.

You can follow your activity on Stack Overflow with the Stack Exchange Android App. An iPhone version is coming...

One more thing. EasyPHP is on GitHub. You will find the repositories at this address : https://github.com/easyphp. If you want to report a bug, please use the GitHub issue management system of each repository.

can't use prepare statement with easy php



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

i have to use prepare statement. See this example :

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

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: 
Subject: 
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.