How to save two-dimensional arrays in database?

0

Making a var_dump of my form I get this result:

       array (size=12)
            'nombre' => string '' (length=0)
            'apellido' => string '' (length=0)
            'dni' => string '' (length=0)
            'telefono_fijo' => string '' (length=0)
            'celular' => string '' (length=0)
            'provincia' => string '' (length=0)
            'ciudad' => string '' (length=0)
            'calle' => string '' (length=0)
            'objetivo_laboral' => string '' (length=0)
            'question' => 
                array (size=2)
                1 => 
                    array (size=5)
                    'empresa' => string '' (length=0)
                    'puesto' => string '' (length=0)
                    'personas_a_cargo' => string '' (length=0)
                    'referencia' => string '' (length=0)
                    'descripcion_puesto' => string '' (length=0)
                2 => 
                    array (size=5)
                    'empresa' => string '' (length=0)
                    'puesto' => string '' (length=0)
                    'personas_a_cargo' => string '' (length=0)
                    'referencia' => string '' (length=0)
                    'descripcion_puesto' => string '' (length=0)
            'institucion' => string '' (length=0)
            'especialidad' => string '' (length=0)
        )

I made a table in the database with name 'labor_experience', the idea is that each experience is saved in a row of the table in the db, since the same user can have several experiences using a Foreign Key so that join with the users table. My question is how should I build the .php to save the arrays?

    
asked by Fabricio Loupias 02.06.2018 в 20:16
source

0 answers