Suppose I have a query with prepare
that looks like this:
select senha from usuarios where id=? //or id2=?, array($id,$id2); (é só um exemplo).
My intention is to change the ?
to any other value that I choose within the array and not that it picks up the order that is inside the array.
For example, the first id=?
takes the value from position 2 of the array.
I am using postgresql database and PHP programming language