Jump to content
We've recently updated our Privacy Statement, available here ×

Query before parameter passed by php


Recommended Posts

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);[/code]

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?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...