How to use case statement instead of if statement in codeigniter |
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
|
Messages In This Thread |
How to use case statement instead of if statement in codeigniter - by Bright - 10-28-2016, 02:50 AM
RE: How to use case statement instead of if statement in codeigniter - by salain - 10-28-2016, 04:17 AM
RE: How to use case statement instead of if statement in codeigniter - by Bright - 10-28-2016, 04:33 AM
RE: How to use case statement instead of if statement in codeigniter - by salain - 10-28-2016, 05:03 AM
RE: How to use case statement instead of if statement in codeigniter - by Wouter60 - 10-28-2016, 05:43 AM
RE: How to use case statement instead of if statement in codeigniter - by Bright - 10-28-2016, 06:40 AM
|