I am trying to build a where clause for mysql based on different form
inputs but php seems to have a problem with the following:
$whrClause = "WHERE keywords LIKE '%$keywords%'"
I thought with the double quotes that the single-quote and percent
signs would remain unchanged and the variable $keywords would be
expanded to its value, but I guess I am wrong because i get a parsing
error... Any help for a php newbie?
inputs but php seems to have a problem with the following:
$whrClause = "WHERE keywords LIKE '%$keywords%'"
I thought with the double quotes that the single-quote and percent
signs would remain unchanged and the variable $keywords would be
expanded to its value, but I guess I am wrong because i get a parsing
error... Any help for a php newbie?
Comment