"php prepared statements… bind variable as numeric range in regexp?" Code Answer

2

placeholders can only be used where a value can appear, not embedded in strings. try:

$query = "select * from `mytable` where `file` regexp concat('[', :val, '-9]')";
By LAP on January 30 2022

Answers related to “php prepared statements… bind variable as numeric range in regexp?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.