Select multiple movie categories

-3

Well, I come across the following puzzles (for me) which is as follows, I honestly know how to start doing what I want to be several checkbox's each with its value . After that I do not really know how to do it.

  

WARNING, I'm not saying to do everything, just give some tips.

How can I put everything in the same column in base de dados and then, for example, display as follows on my page:

  

Example:

Category: Categoria1, Categoria2, Categoria3, Etc..

    
asked by anonymous 07.02.2015 / 04:18

1 answer

0

Well, an alternative is to add the selected values in an array and in PHP using foreach to perform the insertions in your database.

foreach ($categorias as $categoria) { // $categoria assume um valor do array 
        // sua inserção no banco usando $categoria
}

To check, simply select the categories.

    
07.02.2015 / 15:15