3
I have a company table and another employee.
Company table:
id_emp | tipo | documento | fantasia | email | celular | senha | data_cadastro | ativo
Example:
1 | pessoa juridica | 05.142.333/0001-21 | petstop caes e gatos | [email protected] | (21) 8651-0801 | MD5 | 22/11/2015 | 09:49:00 | 1
Employee table:
id_func | sexo | nome | sobrenome | funcao | celular | email | senha | ativo | data_cadastro | id_emp
Example:
1 | M | Paulo | Santos | veterinario | (21)8651-0001 | [email protected] | MD5 | 1 | 22/11/2015 | 09:49:00 | 1 | ???
Before my question, I will inform the procedure I do to get here: On my website, the company (petstop caes and cats) makes her registration. After registration, the system sends a link to the registered email ([email protected]) with the MD5 password. And, it goes a link to the activation of it. When it makes the activation, just below it makes the login.
I did using this example here.
It was created an employee registration form, that is, after logging in, it will register the employee, and after saving, in the employee table, associate this to the company.
Welcome to Sopt. But, what’s your question?
– emanuelsn
Taking advantage that you have already read the [tour], read also the [Ask]. :)
– emanuelsn
I’m wanting to take the company id and play in the id_emp field of employee registration.
– Pacífico
at the time of registration of the company you also register an employee?
– Marcelo Bonus
Right, but what are you using? In PHP, PDO? In the database, Mysql, etc. Without so many details it is difficult to answer.
– Ana P. Messina
I’m using Mysql + PHP
– Pacífico