Welcome Guest, Not a member yet? Register   Sign In
Building a Related Records Function?

[eluser]Corey Freeman[/eluser]
I've been trying to use the $this->db->like() function, however, that seems to be returning things that only have the EXACT words, regardless of length. Is there a different function I need to use to build a kind of "related entries" function, or a parameter to set?

Please help...


Why don't you check the Mysql manual for LIKE.
In short : column_name LIKE '%php%' will find any string containing 'php'.

If you want more extensive searching you should check out MATCH. And if you want real 'related items' functionality, you'll have to build something yourself, by linking keywords to your items and looking for items that have the same keywords..

Theme © iAndrew 2016 - Forum software by © MyBB