CI 3 QUERY ISSUES |
Hi there, things were working perfectly untill today's morning , have no idea why it's acting weird,
from a controller type is being sent but its not working for some reason. PHP Code: function get_cms_data($type = 0, $id = 0) this is what is being executed. type is coming blank SELECT * FROM `data_list` WHERE `type` = 'AND ' LIMIT 1
Hi, die — Equivalent to exit. Maybe that's why. die
Your if statement is_numeric is returning true for both $type and $id because there set to 0 so both are true.
Check your first if statement logic. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
hey thanks for all the help, but There was nothing wrong with my code, It seems there was a malware attack on my server which deleted several files from the project which was causing the issue.
|
Welcome Guest, Not a member yet? Register Sign In |