Tenho 2 tabelas num sistema de cadastro de clientes e seus respectivos eventos, como cada cliente pode ter mais de 1 evento eu gostaria de obter uma ajuda pois fiz as tabelas da seguinte maneira:
clientes (Com os campos id_cliente e cliente)
clientes_eventos (Com os campos de id_cliente, id_evento e outos do evento)
O cadastramento do cliente e feito anteriormente ao cadastro do evento e no cadastro do evento eu inclui um list menu com os nomes de todos os clientes para selecão na hora de cadastrar o evento, eu gostaria de alimentar o campo id_cliente na tabela clientes_eventos com o id_cliente q é selecionado no list menu q vem dá tabela clientes, só q tenho encontrado diversos meios mas nenhum efetivo gostaria de uma ajuda se possivel para a resolução desse problema, segue aki meu codigo:
Pergunta
Azzurra.com
Olá,
Eu tenho o seguinte problema:
Tenho 2 tabelas num sistema de cadastro de clientes e seus respectivos eventos, como cada cliente pode ter mais de 1 evento eu gostaria de obter uma ajuda pois fiz as tabelas da seguinte maneira:
clientes (Com os campos id_cliente e cliente)
clientes_eventos (Com os campos de id_cliente, id_evento e outos do evento)
O cadastramento do cliente e feito anteriormente ao cadastro do evento e no cadastro do evento eu inclui um list menu com os nomes de todos os clientes para selecão na hora de cadastrar o evento, eu gostaria de alimentar o campo id_cliente na tabela clientes_eventos com o id_cliente q é selecionado no list menu q vem dá tabela clientes, só q tenho encontrado diversos meios mas nenhum efetivo gostaria de uma ajuda se possivel para a resolução desse problema, segue aki meu codigo:
Ps.: sou iniciante em php/mysql aprendi(ou estou tentando) na marra entaum qualquer ajuda para modificações novas ideias serão bem aceitas!!!
Obrigado
Link para o comentário
Compartilhar em outros sites
0 respostass a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.