I`m trying to understand and use explode(), implode() from and to mysql db.
Can someone SHOW me how to do the following code ??
This is what i use to get the info into the db:
// This is a checkbox from a form echo '<input type="checkbox" value="'.$id.'" name="comfy"'; if(array_search("1",$comfy) > -1) echo ' checked="true"'; echo '>'.$cars_comfy.'<br>'; //After submitting the form, i use implode $comfy= implode(',',$comfy); // That works okey enough, and in db it shows 1,2,3,4,5,6 and so on
But then comes the tricky part, how to get it out again!?
Thing is, that i am storing only numbers (like 1,2,3), and the value of those numbers is stored into another table.
So you see that, i have to get out the numbers from the first table then the cars_comfy (output these names) to match the cars_id that is already uses implode on.
Output would be (like i want it to be): A list:
* and so on....
Anyone that can help me make this script ??
Much easier to see a working example that reading from a text book.. hehe..
Anyway, thank you so much =)