Cleaning up a database word for URL |
[eluser]Shinzo[/eluser]
Hi Guys! I have a little question. I develop a community with mysql-databases. There I have an table with a field, which I use later as ID in my URLs. i.e.: http://www.domain.de/page/show/my_word/ query is then: select * where clearword = my_word I use this for clean urls. So now i always have an simple function to clean up my word and destroy special characters and so on: Code: function name($alias) { I use CI not long and I wanted to ask if there is an Helper or a library which is doing the same thing. Maybe you have program an own function which you use with CI. (Sorry for my bad english ) Thanks for answers, Shinzo
[eluser]Shinzo[/eluser]
Thanks, I think I will better use my posted function as CI-model. The standard helper is too simple for me. |
Welcome Guest, Not a member yet? Register Sign In |