I have question about to_tsquery_partial()
function in postgresql, I want to put php variable that reads user input inside this function. I have a problem with syntax, I've tried many times but nothing works. Can you help me please?. Here is the query:
$query='SELECT * FROM planet AS a,to_tsquery_partial(\'{$user}\') AS query
WHERE ts_road @@ query';
Thankx in advance :)