pg_query_params returning false

257 Views Asked by At

I am using this code to check if an email already exists in the DB, but it returns 'false' everytime (it's working on another website).

pg_query_params("SELECT * FROM a_user WHERE LOWER(user_email) = $1", $params);

After the execution of query, value of $params is changing, not sure how.

0

There are 0 best solutions below