FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
radphp select params
tengo el siguiente codigo:
function btnconsultarClick($sender, $params) { $this->dbbdtelenodo1->close(); $this->dbbdtelenodo1->Connected = false; $this->dbbdtelenodo1->Connected = true; $this->dbbdtelenodo1->Open(); if ($this->edtidtelenodo->text<>'') { No -me muestra nada en la grilla $variable=$this->edtidtelenodo->Text; $variable=(Int)$variable; // hacemos la consulta $sql="SELECT geslogpos_historico01.pr_serie, geslogpos_historico01.gb_id, geslogpos_historico01.lo_canaltx, geslogpos_historico01.li_fechahoraregistro FROM geslogpos_historico01 where geslogpos_historico01.pr_serie='$xxx'"; //*$cons="SELECT * FROM tb_guias,tb_destino,tb_dispositivos // WHERE (id_destino=tb_destino_id_destino)AND(tb_dispositivos_id_dispositivo=id_dispositivo)AND(num_guia=".$ guia.");"; // concateno valor //$sql .= $this->edtidtelenodo->Text; $param = array(); $params[] = $variable; $this->qrygeslogpos01->SQL=$sql; $this->qrygeslogpos01->Params=$params; } else { Si --me muestra datos en la grilla // hacemos la consulta $sql="SELECT geslogpos_historico01.pr_serie, geslogpos_historico01.gb_id, geslogpos_historico01.lo_canaltx, geslogpos_historico01.li_fechahoraregistro FROM geslogpos_historico01"; // meto sql al componente query $this->qrygeslogpos01->SQL=$sql; } //Prepare the query $this->qrygeslogpos01->Prepare(); //Reopen the dataset $this->qrygeslogpos01->close(); $this->qrygeslogpos01->open(); } } El problema pasa al tratar de pasar parámetros al query si alguien me puede ayudar. Gracias. |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Publicar pagina php hechas con RadPhP XE | kurono | Varios | 5 | 25-10-2011 21:15:35 |
Empezar con RadPHP 3.0 | ramflores | PHP | 8 | 15-09-2011 23:14:36 |
Proyectos en RadPhP no puedo verlos en servidor xampp | novato_erick | PHP | 6 | 14-04-2011 13:27:10 |
Params con Int64 | tgsistemas | API de Windows | 7 | 31-03-2010 20:36:08 |
|