php - how to get bind param array in Yii create command -


is there way in yii array of parameters passed in createcommand?

     $countsql= 'my sql query ';      $command = yii::app()->db->createcommand($countsql);         $command->bindvalue(":param1",'%'.$param1.'%');      $command->bindvalue(":param2",'%'.$param2.'%');      $command->queryall(); 

i want know if there way array similar

array(  ":param1" => '%'.$param1.'%',  ":param2" => '%'.$param2.'%', ) 

you can parameters extending library files pdo connection , cdbcommand.

in project, had created extended cpdoconnection , cdbcommand.

i had code you, let me know if need it.

regards, sanjay


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -