Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $sql = "SELECT * FROM
- `quotes`
- WHERE
- MATCH(quote) AGAINST(:against IN BOOLEAN MODE) AND
- quote REGEXP '[[:<:]]:regexp[[:>:]]'
- LIMIT 1";
- $exec = $result->execute([':against' => $word, ':regexp' => $word]);
- $sql = "SELECT * FROM
- `quotes`
- WHERE
- MATCH(quote) AGAINST(:against IN BOOLEAN MODE) AND
- quote REGEXP '[[:<:]]" . PDODB::quote($word) . "[[:>:]]'
- LIMIT 1";
- $exec = $result->execute([':against' => $word]);
- '[[:<:]]'book'[[:>:]]'
Add Comment
Please, Sign In to add comment