![]() |
Dates Form for Reporting - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Dates Form for Reporting (/showthread.php?tid=18993) |
Dates Form for Reporting - El Forum - 05-24-2009 [eluser]mdcode[/eluser] I think that I'm going around in circles with this and so tying myself in a knot - I've made so many changes so far that I can't count and I've only go a little way forward. Basically what I want is a form with two boxes, allowing the user to specify a date to run the report (this part is fine, so I won't go further with that). When the form is submitted, I want the page to take those values, run the query with a BETWEEN clause to bring up the list of records. Whatever I do, I am unable to get the query to substitute the variables for the values. I hope the code will explain better: CONTROLLER: Code: function bydatequery() MODEL: Code: /* get dates, and the number of rows for the listing */ I have used the last_query function to exho the query being used, which works if I manually give it values in phpmyadmin, it's just not pulling the variables from the posted form. Any and all help is very much appreciated. Dates Form for Reporting - El Forum - 05-24-2009 [eluser]mdcode[/eluser] Never mind guys. This has been solved. |