Bonsoir,

Je suis en train de faire un script de saisie des horaires hebdomadaires des salariés.

J'ai besoin pour chaque jour de connaître Heure et Minute de début le matin et Heure et Minute de l'après midi.

Donc, j'ai commencé par faire une table comprenant ceci :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
hor_m_lundi_H_debut , hor_m_lundi_M_debut , hor_m_lundi_H_fin , hor_m_lundi_M_fin , hor_a_lundi_H_debut , hor_a_lundi_M_debut , hor_a_lundi_H_fin , 
		hor_a_lundi_M_fin , hor_m_mardi_H_debut , hor_m_mardi_M_debut , hor_m_mardi_H_fin , hor_m_mardi_M_fin , hor_a_mardi_H_debut , hor_a_mardi_M_debut , 
		hor_a_mardi_H_fin , hor_a_mardi_M_fin , hor_m_mercredi_H_debut , hor_m_mercredi_M_debut , hor_m_mercredi_H_fin , hor_m_mercredi_M_fin , 
		hor_a_mercredi_H_debut , hor_a_mercredi_M_debut , hor_a_mercredi_H_fin , hor_a_mercredi_M_fin , hor_m_jeudi_H_debut , hor_m_jeudi_M_debut , 
		hor_m_jeudi_H_fin , hor_m_jeudi_M_fin , hor_a_jeudi_H_debut , hor_a_jeudi_M_debut , hor_a_jeudi_H_fin , hor_a_jeudi_M_fin , hor_m_vendredi_H_debut , 
		hor_m_vendredi_M_debut , hor_m_vendredi_H_fin , hor_m_vendredi_M_fin , hor_a_vendredi_H_debut , hor_a_vendredi_M_debut , hor_a_vendredi_H_fin , 
		hor_a_vendredi_M_fin , hor_m_samedi_H_debut , hor_m_samedi_M_debut , hor_m_samedi_H_fin , hor_m_samedi_M_fin , hor_a_samedi_H_debut , 
		hor_a_samedi_M_debut , hor_a_samedi_H_fin , hor_a_samedi_M_fin
Et puis je me pose la question de faire plus simple en passant par un array. Mais je n'en ai jamais utilisé directement dans une base mysql.

Donc, si je remplace ce qu'il y a ci-dessus par un tableau cela pose-t-il un problème pour mysql, ou y a-t-il des contraintes en lectures ou en écritures.

Merci d'avance