Hi

I need a view with two textbox for getting this values for doing a query

This is my view reporteiario.ctp

> <h1>Reporte Diario</h1> <?php echo $this->Form->create('dates'); echo 
> $this->Form->input('Inicio'); echo $this->Form->input('Fin'); echo $this
> ->Form->end('Generar Reporte'); ?>


This is my function in my controller
public function reportediario() { if ($this->request->is('post')) { $d=$this
->request->data['dates']['inicio']; $q = "SELECT * from table WHERE Fecha 
>= "; $f=$q.$d; $this->set('vwrecords',$this->Vwrecord->query($f) ); } 
>
> }


The problem is I am getting a database error. I can't request the data from 
the text box.
Any idea? 

>  

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to