Checkbox group and save in two tables

0

Hello everyone, is everything ok with you?

I have the following doubt I have a form with a checkbox group related some services see below:

Mecânica
Funilaria
Pintura
Cristalização
Box (Mêcanica / Fulinaria / Pintura / Cristalização)

I have two tables in my database called request and service.

The REQUEST table I have the following fields

ID
ID_SERVICO

The SERVICES table I have the following fields

ID
SERVICO

My doubts are:

  • How do I add an order for each selected service?
  • In the Box item I need to generate a single order number but for the Box in the table in the service you have to save each service separately but the number of that request is the same, how to do this?
  • I'm using Mysqli as a database drive.

        
    asked by anonymous 17.11.2018 / 15:29

    0 answers