Hi, I am a PHP developer with strong knowledge of Codeigniter framework and MVC design pattern.
I can improve your script by moving all queries to models and clear up the rest of the code.
If you need more information feel free to contact me.
Thank you in advance
Regards,
George