I have the following code snippet that I want to have update a specific record in a table via PHP... I keep getting the following error:
Fatal error: Call to undefined function: pq_query()
Any suggestions would be great.
if ($newpasswd == $renewpasswd) {
$query3 = "UPDATE emptable SET password='$newpasswd'
WHERE
(((user_id)='$user_id'))";
$result3 = pq_query ($connection,$query3)
or die("Error in query: $query3.
" . pg_last_error($connection));
Fatal error: Call to undefined function: pq_query()
Any suggestions would be great.
if ($newpasswd == $renewpasswd) {
$query3 = "UPDATE emptable SET password='$newpasswd'
WHERE
(((user_id)='$user_id'))";
$result3 = pq_query ($connection,$query3)
or die("Error in query: $query3.
" . pg_last_error($connection));