Query before parameter passed by php

I'm tryng to pass a parameter from php!

This is php code:

$controls = array(
    'CATEGORIA' => array($idcategoria));
 
$report = $c->reportService()->runReport('/reports/interactive/Report', 'html', null, null,$controls);

This is query:

select * from xxx where x=${CATEGORIA}

This is error log:

SQL query string: SELECT x,y,z from xxx WHERE x=?

DEBUG JRJdbcQueryExecuter,pool-5-thread-66:569 - Parameter #1 (CATEGORIA of type java.lang.String): 3

3 is a correct value!!!

Why parameter doesn't "pass" to sql?

andreaussi's picture
Joined: Jul 25 2013 - 6:42am
Last seen: 1 year 7 months ago

0 Answers:

No answers yet
Feedback
randomness