[eluser]Unknown[/eluser]
Hello I want to make a sorting script with code igniter.
I'm sending arguments to method by URL (sort/db_field/sort_type)
example: sort/title/desc
But I think it is bad solution, becouse for example if someone wrote bad value as db_field (ex. title123) then
Code Igniter will generate error like "Unknown Field" with full query to database.
It is dangerous becouse noone should know names of tables etc.
Is there any other solution to make sorting like this?
If not, meybe I can disable that error function and made redirect there? but how?
Give me some advices please.
~reptilerex