[SOLVED] Foreach with implode comma |
08-01-2016, 10:21 PM
(This post was last modified: 08-06-2016, 05:01 PM by waptik. Edit Reason: Added the fix to my problem )
Please i'm stucked with this problem for an hour now(yeah i'm newbie in this).
this is a piece of code in my controller PHP Code: $tags = $this->input->post('check_list'); and this is the view(index.php). i also wanted to see the query i did,so tried to output it with last_query() : PHP Code: <?php and the printed result is: Code: ,string(2) " ," string(4) "SELECT * FROM `info` WHERE `text_id` = '4'" what i want to achieve is something like this depending on the selected checbox by their id: The Checked boxes names were: sun, heaven, earth UPDATE(8/6/2016 11:57pm) Here is the fix: PHP Code: //in controller
Be Simple
|
Messages In This Thread |
[SOLVED] Foreach with implode comma - by waptik - 08-01-2016, 10:21 PM
RE: struggling with foreach using checkbox values - by PaulD - 08-04-2016, 12:50 PM
RE: struggling with foreach using checkbox values - by Wouter60 - 08-05-2016, 01:47 AM
RE: struggling with foreach using checkbox values - by waptik - 08-06-2016, 04:53 PM
RE: struggling with foreach using checkbox values - by Paradinight - 08-07-2016, 04:09 AM
|