Is there a best practice for issuing a parameterized command call (ExecuteNonQuery) to a postgres function using PHP?
Is there a best practice for issuing a parameterized command call (ExecuteNonQuery) to a
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Best practices:
Parameterize your query (i.e. http://php.net/manual/en/function.pg-query-params.php or similar)
I actually think it is a bad practice to return void. I think it is almost always better to return some useful info. However there is nothing special about void-returning functions. You just call them like any other functions.