I have a problem with with my oracle query. When I run it in PHP, it returns 0 results. If I run the same Query in Oracle SQLDeveloper, it returns 52 results.
This is the query in PHP:
SELECT name , zipcity FROM import_persons WHERE upper(:zoekop) LIKE '%:zoekwaarde%' AND status < 3 ORDER BY name
$parameters = array(':zoekop' => $zoekop, ':zoekwaarde' => $zoekwaarde);
The query I run in SQLDeveloper, with the variables filled in manually.(Copied them from an echo in the PHP).
SELECT name , zipcity FROM import_persons WHERE upper(name) LIKE '%Q%' AND status < 3 ORDER BY name
I can't seem to find the error, before asking, I tried to bind the params but that didn't work.