Based on the information here Trying to create a PDO query with the experiment Nothing works; get the error Syntax error or access violation: 1064 You have an error in your SQL syntax; To use the closest '% ... for What is the correct pdo Try this by adding values to the string through PHP, ?
SELECT * from the table where like%?% / P>
SELECT * from table where column?%
SELECT * from the table where the column is like?
SELECT * as the table WHERE column, use for the correct syntax of your MySQL server version Check the related manual. But this is not
in
what's in the column in the column?
in statement for a static placeholder (
? )?
< Code> $ value = "valueHere"; $ PassThis = "%" $ value "%"; // Other PDO code ... $ stmt = $ dbh- & gt; Ready ("Select from table to table where like column?"); $ Stmt- & gt; Baidumparam (1, $ passThis); // Other PDO code ...
No comments:
Post a Comment