Search Form - 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: Search Form (/showthread.php?tid=58367) |
Search Form - El Forum - 06-06-2013 [eluser]maddtechwf[/eluser] I've got the basic form setup on my view and then I have a Model and Controller setup also. But my search is not working. Can anyone help point me in the right direction??? I have the form helper autoloaded. View Code: <?php echo form_open('map/lookup'); ?> Controller Code: public function lookup() Model Code: function search($term) Search Form - El Forum - 06-06-2013 [eluser]jairoh_[/eluser] try print_r( $results ), if empty then there's something wrong w/ the query. |