Welcome Guest, Not a member yet? Register   Sign In
Matching strings
#2

[eluser]Michael Wales[/eluser]
I usually have a field for the title and when that is submitted I not only save the title to the database but a "slug" as well. The slug is simply the title turned into a URL form (for example "My Post Title" becomes my-post-title).

The easiest way to accomplish this is via the URL Helper's url_title() function.

Then, you can just pass the slug as a parameter of the URL and use it to return your result.


Messages In This Thread
Matching strings - by El Forum - 04-13-2008, 05:18 AM
Matching strings - by El Forum - 04-13-2008, 05:24 AM
Matching strings - by El Forum - 04-13-2008, 06:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB