I ve made a form in php. In that i ve asked the user to fill in the skill sets separated by comma. for eg. key skills: C, C++, Java.
Now when the user enters the data here i want to store that data in database. Ive stored that data in a array variable using the explode function. Here is a sample of code that i am using. I wanted to know how can i store this kind of data in database so that the data corresponds to a particular users profile.
Im not able to store it in database.
Expand|Select|Wrap|Line Numbers
- $skills = "C, C++, Java, PHP";
- $arrSkills = explode(",",$skills);
- foreach($arrSkills as $v){
- echo trim($v);
- }