Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is pg_exec sustainable?

Tags:

php

Is pg_exec() usable or deprecated? I've inherited a script that's using it and it seems to work, but the php.net reference is a 404. I'm not talking about the PDO pg_execute either.

Random reference I've found on the function

like image 819
1252748 Avatar asked Feb 13 '23 23:02

1252748


1 Answers

Now it's called pg-query: http://www.php.net/manual/en/function.pg-query.php

From the manual:

This function used to be called pg_exec(). pg_exec() is still available for compatibility reasons, but users are encouraged to use the newer name.

like image 88
Victor Henriquez Avatar answered Feb 23 '23 05:02

Victor Henriquez