Hi
Why it cant find closing/opening brackets
Code example
https://pastebin.com/MT6hBi3R
I mean there are 3 strings and you want parentheses in string 1 (yellow) to match parentheses in string 3 (red). I am not saying it’s not possible but that makes more problems than it solves, probably.
For example, given ("(")
, should the (
in "("
matches )
? No.
Yes you write this probem like this.
Code for example its wrong syntax?
Whats write syntax?
$pagination=pagination("
SELECT
<fields>
FROM (".$sqlT.") as h
WHERE 1=1 ".$sql."
ORDER BY ".$sort,
"*",
"COUNT(*) as n");
Nothing wrong in your code grammatically (SQL injection welcome though). It’s just that ST won’t match parentheses across strings. If you want to workaround that badly in ST,