Welcome Guest, Not a member yet? Register   Sign In
How to use case statement instead of if statement in codeigniter
#4

Hey,

Still, not saying what the problem is ?
What do you expect? and what do you get ?

If you always get the the code in the else statement when you are sure the id's  are the same then it maybe because one is not set properly
print or echo the ids to see if they are set correctly.

The way you get the id from the session is depreciated Look here

Also you don't need the quote a the end in your anchor
PHP Code:
echo anchor('admin/messages/edit/'.$message->id'Edit''class="btn btn-primary"'); 

I hope this helps
A good decision is based on knowledge and not on numbers. - Plato

Reply


Messages In This Thread
RE: How to use case statement instead of if statement in codeigniter - by salain - 10-28-2016, 05:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB