R
R
Respect and good to all2018-05-12 16:28:08
PHP
Respect and good to all, 2018-05-12 16:28:08

Point out the syntax error?

In Navicat the function is handled correctly (screenshot-1).
5af6eb7f9ceed747668730.png
In PHP, this is the same function (screenshot-2).
5af6eb8921e67469284399.png
Gives an incomprehensible result (screen-3).
5af6eb952572e119049623.png
When replacing SELECT with CALL (screen-4).
5af6eb9e7f6ba847403188.png
Gives such an error (screenshot-5).
5af6eba9e0e63931281337.png
With any other manipulations, for example, attempts to play around with quotes, or apostrophes, replacing with
adjacent operators, it also swears at the syntax or even a white screen (does not display a single character).
Where did I screw up
?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-05-12
@Link-Line

Where did I screw up?

Where they decided to replace the reading of the documentation with fantasizing. Return SELECT back, and "incomprehensible result" is a query result resource, you need to get what you need from it, there are all sorts of different methods for this - pg_fetch_result , pg_fetch_row , pg_fetch_all , ... - choose the appropriate one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question