Welcome Guest, Not a member yet? Register   Sign In
Need help with basic search query related stuff...
#2

[eluser]Aken[/eluser]
You shouldn't pass query parameters directly from the $_POST array. Sanitize it before using it.

LIKE is a pattern search, rather than an equality comparison (= or !=). http://theopentutorials.com/tutorials/my...-operator/

Code:
$this->db->order_by('bookTitle', 'ASC');
$query = $this->db->get_where('bookInformation', array('bookTitle'), $post['bookTitle']);

return $query->result();


Messages In This Thread
Need help with basic search query related stuff... - by El Forum - 05-25-2012, 06:42 PM
Need help with basic search query related stuff... - by El Forum - 05-25-2012, 07:10 PM
Need help with basic search query related stuff... - by El Forum - 05-25-2012, 07:25 PM
Need help with basic search query related stuff... - by El Forum - 05-25-2012, 09:22 PM
Need help with basic search query related stuff... - by El Forum - 05-25-2012, 09:39 PM
Need help with basic search query related stuff... - by El Forum - 05-25-2012, 09:44 PM
Need help with basic search query related stuff... - by El Forum - 05-25-2012, 09:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB