bonsoir
je vient de développer une application pour l'automatisation de la génération des emplois de temps universitaire, en PHP (procédurale avec la classe Mysqli_ )et MySQL , vu que je suis débutant en php , je n'arrive pas à résoudre ce problème ( Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in C:\wamp\www\memoire_fin_etude\emplois_du_temps_section.php on line 712 )
ce n'est pas que dans cette ligne , mais cette erreur dans toutes les lignes mysqli_fetch_array , j'éspere que vous pouvez m'aider
voici mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
<?php 
// appelle au code de connexion à la BDD
require_once("bdd.php");
$donnee=mysqli_query($db,"select distinct nom_formation from formation");
$data1=mysqli_query($db,"select  distinct libelle_semestre from semestre");
if(isset($_GET['id_section']))
{
$id_section=$_GET['id_section'];
$var=$id_section;
$ligne1=mysqli_fetch_array(mysqli_query($db,"SELECT libelle_module, groupe.id_groupe AS id_groupe, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec, gestion_section.id_section, seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_sec = gestion_section.id_section
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
AND gestion_section.id_section =$var"));
 
$formation=stripslashes($ligne1['formation']);
$libelle_groupe=stripslashes($ligne1['libelle_groupe']);
$semestre=stripslashes($ligne1['semestre']);
$lib_sec=stripslashes($ligne1['lib_sec']);
$session=stripslashes($ligne1['session']);
$libelle_groupe=stripslashes($ligne1['libelle_groupe']);
?>
<!DOCTYPE html>
<html >
<head>
<script language="Javascript">
function imprimer(){
window.print();}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Emploi de Temps</title>
<link rel="stylesheet" type="text/css" href="CSS/emploi_du_temps.css" />
<link rel="stylesheet" type="text/css" media="screen" href="CSS/special.css">
</head>
<body  style="background-color:#FFF; background-image:url(image/bla.png)">
<center>   
<p style="margin-top:-10px; text-align:center;letter-spacing:4px;font-style:italic; word-spacing:6px;;font-size:24px;font-family:'Comic Sans MS', cursive; " > EMPLOI DU TEMPS </p><p style="margin-top:-15px; text-align:center;letter-spacing:2px;word-spacing:3px;;font-size:20px;font-family:'Comic Sans MS', cursive; " >  FORMATION :<span style="color:#00F"><?php echo $formation;?> </span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SEMESTRE :<span style="color:#00F"> <?php echo $semestre;?></span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SECTION : <span style="color:#00F"><?php echo $lib_sec;?></span></p></center>
 
<?php
$ligne111= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod,id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
and jour = 'Dimanche'
AND heure = '08:00-09:30'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne2= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec, seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
and jour = 'Dimanche'
AND heure = '09:30-11:00'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
  $ligne3= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec, seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Dimanche'
AND heure = '11:00-12:30'
AND seance.id_pr = prof.id_prof
AND salle.id_salle = seance.id_sal
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
 $ligne4= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Dimanche'
AND heure = '12:30-14:00'
AND seance.id_pr = prof.id_prof
AND salle.id_salle = seance.id_sal
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne5= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Dimanche'
AND heure = '14:00-15:30'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne6= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
 AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Dimanche'
AND heure = '15:30-17:00'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
// fin dimanche //debut de lundi
$ligne7= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Lundi'
AND heure = '08:00-09:30'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne8=mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe,formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Lundi'
AND heure = '09:30-11:00'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne9= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_sec = gestion_section.id_section
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Lundi'
AND heure = '11:00-12:30'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne10= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
 AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Lundi'
AND heure = '12:30-14:00'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne11= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Lundi'
AND heure = '14:00-15:30'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne12= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Lundi'
AND heure = '15:30-17:00'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
//fin Lundi debut mardi
$ligne13= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Mardi'
AND heure = '08:00-09:30'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne14= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_sec = gestion_section.id_section
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Mardi'
AND heure = '09:30-11:00'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne15= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Mardi'
AND heure = '11:00-12:30'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne16= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Mardi'
AND heure = '12:30-14:00'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne17= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Mardi'
AND heure = '14:00-15:30'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne18= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Mardi'
AND heure = '15:30-17:00'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
//fin mardi debut mercredi
$ligne19= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Mercredi'
AND heure = '08:00-09:30'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne20= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Mercredi'
AND heure = '09:30-11:00'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne21= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_sec = gestion_section.id_section
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Mercredi'
AND heure = '11:00-12:30'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne22= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Mercredi'
AND heure = '12:30-14:00'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne23= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Mercredi'
AND heure = '14:00-15:30'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne24= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Mercredi'
AND heure = '15:30-17:00'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
//fin mecredi debut jeudi
$ligne25= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Jeudi'
AND heure = '08:00-09:30'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'") ;
 
$ligne26= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Jeudi'
AND heure = '09:30-11:00'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne27= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Jeudi'
AND heure = '11:00-12:30'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne28= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Jeudi'
AND heure = '12:30-14:00'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne29= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Jeudi'
AND heure = '14:00-15:30'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'");
 
$ligne30= mysqli_query($db,"SELECT  prof.id_prof, libelle_salle, id_for, id_sem, groupe.id_groupe, formation.id_formation, gestion_section.id_section, id_gr, id_pr, id_mod, id_sal, seance.type AS
type , heure, jour, libelle_module, prof.nom, prof.prenom, module.id_module, formation.nom_formation AS formation, libelle_groupe, semestre.libelle_semestre AS semestre, semestre.session, gestion_section.lib_section AS lib_sec,seance.id_sec
FROM groupe, formation, semestre, gestion_section, prof, module, enseigne, seance,salle
WHERE formation.id_formation = groupe.id_formation
AND groupe.id_semestre = semestre.id_semestre
AND gestion_section.id_section = groupe.id_section
AND enseigne.id_prof = prof.id_prof
AND enseigne.id_module = module.id_module
AND enseigne.id_formation = formation.id_formation
AND seance.id_mod = module.id_module
AND seance.id_gr = groupe.id_groupe
and jour = 'Jeudi'
AND heure = '15:30-17:00'
AND seance.id_pr = prof.id_prof
AND module.id_module = seance.id_mod
AND groupe.id_groupe = seance.id_gr
AND salle.id_salle = seance.id_sal
AND seance.id_gr = groupe.id_groupe
AND seance.id_sec = gestion_section.id_section
AND seance.id_for=formation.id_formation
AND seance.id_sec ='$var'"); 
//fin de jeudi
 ?><center>
<table class="emploi">
  <tr class="ligne">
   <th style=" height:30px;"> Jour /Heure</th>
    <td style="height:30px;font-weight:bold;background-color:rgba(102,102,102,.3);">08:00-09:30</td>
    <td style="height:30px;font-weight:bold;background-color:rgba(102,102,102,.3);">09:30-11:00</td>
    <td  style="height:33px;font-weight:bold;background-color:rgba(102,102,102,.3); border-right:solid  #666;">11:00-12:30</td>
    <td style="height:30px;font-weight:bold;background-color:rgba(102,102,102,.3);">12:30-14:00</td>
    <td style="height:30px;font-weight:bold;background-color:rgba(102,102,102,.3);">14:00-15:30</td>
    <td style="height:30px;font-weight:bold;background-color:rgba(102,102,102,.3);">15:30-17:00</td>
  </tr>
  <tr>
    <td class="mam">Dimanche</td> 
      <td><?php  
  while($a1= mysqli_fetch_array($ligne111)) {?><br>
<?php if($a1['type'] == true) {  echo '<b>Module :</b>'.$a1['libelle_module'].'('.$a1['type'].')';  }; ?> <br/>
<?php if( $a1['type'] == true){ echo '<b>Prof :</b> '.$a1['nom'].' '.$a1['prenom'];}; ?><br />
<?php if( $a1['type'] == true){ echo '<b>Salle :</b> '.$a1['libelle_salle'];}; ?> <br>
<?php if( $a1['type'] =='Cours') {  echo '<b></b>';} else if( $a1['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a1['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a1['type'] =='Cours') break; } ?></td>
 
<td><?php  
  while($a2= mysqli_fetch_array($ligne2)) {?><br>
<?php if($a2['type'] == true) {  echo '<b>Module :</b>'.$a2['libelle_module'].'('.$a2['type'].')';  }; ?> <br/>
<?php if( $a2['type'] == true){ echo '<b>Prof :</b> '.$a2['nom'].' '.$a2['prenom'];}; ?><br />
<?php if( $a2['type'] == true){ echo '<b>Salle :</b> '.$a2['libelle_salle'];}; ?> <br>
<?php if( $a2['type'] =='Cours') {  echo '<b></b>';} else if( $a2['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a2['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a2['type'] =='Cours') break; } ?></td>
 
   <td style=" border-right:solid  #666;">         
   <?php  
  while($a3= mysqli_fetch_array($ligne3)){?><br>
<?php if($a3['type'] == true) {  echo '<b>Module :</b>'.$a3['libelle_module'].'('.$a3['type'].')';  }; ?> <br/>
<?php if( $a3['type'] == true){ echo '<b>Prof :</b> '.$a3['nom'].' '.$a3['prenom'];}; ?><br />
<?php if( $a3['type'] == true){ echo '<b>Salle :</b> '.$a3['libelle_salle'];}; ?> <br>
<?php if( $a3['type'] =='Cours') {  echo '<b></b>';} else if( $a3['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a3['libelle_groupe'];} else echo'<b></b> '; ?><br><?php if ( $a3['type'] =='Cours') break; } ?></td>
 
 
    <td><?php  
  while($a4= mysqli_fetch_array($ligne4)) {?><br>
<?php if($a4['type'] == true) {  echo '<b>Module :</b>'.$a4['libelle_module'].'('.$a4['type'].')';  }; ?> <br/>
<?php if( $a4['type'] == true){ echo '<b>Prof :</b> '.$a4['nom'].' '.$a4['prenom'];}; ?><br />
<?php if( $a4['type'] == true){ echo '<b>Salle :</b> '.$a4['libelle_salle'];}; ?> <br>
<?php if( $a4['type'] =='Cours') {  echo '<b></b>';} else if( $a4['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a4['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a4['type'] =='Cours') break; } ?></td>
 
    <td><?php  
  while($a5= mysqli_fetch_array($ligne5)) {?><br>
<?php if($a5['type'] == true) {  echo '<b>Module :</b>'.$a5['libelle_module'].'('.$a5['type'].')';  }; ?> <br/>
<?php if( $a5['type'] == true){ echo '<b>Prof :</b> '.$a5['nom'].' '.$a5['prenom'];}; ?><br />
<?php if( $a5['type'] == true){ echo '<b>Salle :</b> '.$a5['libelle_salle'];}; ?> <br>
<?php if( $a5['type'] =='Cours') {  echo '<b></b>';} else if( $a5['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a5['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a5['type'] =='Cours') break; } ?></td>
 
     <td><?php  
  while($a6= mysqli_fetch_array($ligne6)) {?><br>
<?php if($a6['type'] == true) {  echo '<b>Module :</b>'.$a6['libelle_module'].'('.$a6['type'].')';  }; ?> <br/>
<?php if( $a6['type'] == true){ echo '<b>Prof :</b> '.$a6['nom'].' '.$a6['prenom'];}; ?><br />
<?php if( $a6['type'] == true){ echo '<b>Salle :</b> '.$a6['libelle_salle'];}; ?><br> 
<?php if( $a6['type'] =='Cours') {  echo '<b></b>';} else if( $a6['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a6['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a6['type'] =='Cours') break; } ?></td>
    </tr>
  <tr>
      <td class="mam">Lundi</td>
    <td><?php  
  while($a7= mysqli_fetch_array($ligne7)) {?><br>
<?php if($a7['type'] == true) {  echo '<b>Module :</b>'.$a7['libelle_module'].'('.$a7['type'].')';  }; ?> <br/>
<?php if( $a7['type'] == true){ echo '<b>Prof :</b> '.$a7['nom'].' '.$a7['prenom'];}; ?><br />
<?php if( $a7['type'] == true){ echo '<b>Salle :</b> '.$a7['libelle_salle'];}; ?> <br>
<?php if( $a7['type'] =='Cours') {  echo '<b></b>';} else if( $a7['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a7['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php 
if ( $a7['type'] =='Cours') break;} ?></td>
 
 <td><?php  
  while($a8= mysqli_fetch_array($ligne8)) {?><br>
<?php if($a8['type'] == true) {  echo '<b>Module :</b>'.$a8['libelle_module'].'('.$a8['type'].')';  }; ?> <br/>
<?php if( $a8['type'] == true){ echo '<b>Prof :</b> '.$a8['nom'].' '.$a8['prenom'];}; ?><br />
<?php if( $a8['type'] == true){ echo '<b>Salle :</b> '.$a8['libelle_salle'];}; ?> <br>
<?php if( $a8['type'] =='Cours') {  echo '<b></b>';} else if( $a8['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a8['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a8['type'] =='Cours') break; } ?></td>
 
<td style=" border-right:solid  #666;"><?php  
  while($a9= mysqli_fetch_array($ligne9)) {?><br>
<?php if($a9['type'] == true) {  echo '<b>Module :</b>'.$a9['libelle_module'].'('.$a9['type'].')';  }; ?> <br/>
<?php if( $a9['type'] == true){ echo '<b>Prof :</b> '.$a9['nom'].' '.$a9['prenom'];}; ?><br />
<?php if( $a9['type'] == true){ echo '<b>Salle :</b> '.$a9['libelle_salle'];}; ?> <br>
<?php if( $a9['type'] =='Cours') {  echo '<b></b>';} else if( $a9['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a9['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a9['type'] =='Cours') break; } ?></td>
 
<td><?php  
  while($a10= mysqli_fetch_array($ligne10)) {?><br>
<?php if($a10['type'] == true) {  echo '<b>Module :</b>'.$a10['libelle_module'].'('.$a10['type'].')';  }; ?> <br/>
<?php if( $a10['type'] == true){ echo '<b>Prof :</b> '.$a10['nom'].' '.$a10['prenom'];}; ?><br />
<?php if( $a10['type'] == true){ echo '<b>Salle :</b> '.$a10['libelle_salle'];}; ?> <br>
<?php if( $a10['type'] =='Cours') {  echo '<b></b>';} else if( $a10['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a10['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a10['type'] =='Cours') break; } ?></td>
 
   <td><?php  
  while($a11= mysqli_fetch_array($ligne11)) {?><br>
<?php if($a11['type'] == true) {  echo '<b>Module :</b>'.$a11['libelle_module'].'('.$a11['type'].')';  }; ?> <br/>
<?php if( $a11['type'] == true){ echo '<b>Prof :</b> '.$a11['nom'].' '.$a11['prenom'];}; ?><br />
<?php if( $a11['type'] == true){ echo '<b>Salle :</b> '.$a11['libelle_salle'];}; ?> <br>
<?php if( $a11['type'] =='Cours') {  echo '<b></b>';} else if( $a11['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a11['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a11['type'] =='Cours') break; } ?></td>
 
 
     <td><?php  
  while($a12= mysqli_fetch_array($ligne12)) {?><br>
<?php if($a12['type'] == true) {  echo '<b>Module :</b>'.$a12['libelle_module'].'('.$a12['type'].')';  }; ?> <br/>
<?php if( $a12['type'] == true){ echo '<b>Prof :</b> '.$a12['nom'].' '.$a12['prenom'];}; ?><br />
<?php if( $a12['type'] == true){ echo '<b>Salle :</b> '.$a12['libelle_salle'];}; ?><br> 
<?php if( $a12['type'] =='Cours') {  echo '<b></b>';} else if( $a12['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a12['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a12['type'] =='Cours') break; } ?></td>
 
  </tr>
 
  <tr>
    <td class="mam">Mardi</td>
    <td><?php  
  while($a13= mysqli_fetch_array($ligne13)) {?><br>
<?php if($a13['type'] == true) {  echo '<b>Module :</b>'.$a13['libelle_module'].'('.$a13['type'].')';  }; ?> <br/>
<?php if( $a13['type'] == true){ echo '<b>Prof :</b> '.$a13['nom'].' '.$a13['prenom'];}; ?><br />
<?php if( $a13['type'] == true){ echo '<b>Salle :</b> '.$a13['libelle_salle'];}; ?> <br>
<?php if( $a13['type'] =='Cours') {  echo '<b></b>';} else if( $a13['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a13['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a13['type'] =='Cours') break; } ?></td>
 
   <td><?php  
  while($a14= mysqli_fetch_array($ligne14)) {?><br>
<?php if($a14['type'] == true) {  echo '<b>Module :</b>'.$a14['libelle_module'].'('.$a14['type'].')';  }; ?> <br/>
<?php if( $a14['type'] == true){ echo '<b>Prof :</b> '.$a14['nom'].' '.$a14['prenom'];}; ?><br />
<?php if( $a14['type'] == true){ echo '<b>Salle :</b> '.$a14['libelle_salle'];}; ?> <br>
<?php if( $a14['type'] =='Cours') {  echo '<b></b>';} else if( $a14['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a14['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a14['type'] =='Cours') break; } ?></td>
 
 
    <td style=" border-right:solid  #666;"><?php  
   while($a15= mysqli_fetch_array($ligne15)) {?><br>
<?php if($a15['type'] == true) {  echo '<b>Module :</b>'.$a15['libelle_module'].'('.$a15['type'].')';  }; ?> <br/>
<?php if( $a15['type'] == true){ echo '<b>Prof :</b> '.$a15['nom'].' '.$a15['prenom'];}; ?><br />
<?php if( $a15['type'] == true){ echo '<b>Salle :</b> '.$a15['libelle_salle'];}; ?> <br>
<?php if( $a15['type'] =='Cours') {  echo '<b></b>';} else if( $a15['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a15['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a15['type'] =='Cours') break; } ?></td>
 
    <td><?php  
  while($a16= mysqli_fetch_array($ligne16)) {?><br>
<?php if($a16['type'] == true) {  echo '<b>Module :</b>'.$a16['libelle_module'].'('.$a16['type'].')';  }; ?> <br/>
<?php if( $a16['type'] == true){ echo '<b>Prof :</b> '.$a16['nom'].' '.$a16['prenom'];}; ?><br />
<?php if( $a16['type'] == true){ echo '<b>Salle :</b> '.$a16['libelle_salle'];}; ?> <br>
<?php if( $a16['type'] =='Cours') {  echo '<b></b>';} else if( $a16['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a16['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a16['type'] =='Cours') break; } ?></td>
 
    <td><?php  
  while($a17= mysqli_fetch_array($ligne17)) {?><br>
<?php if($a17['type'] == true) {  echo '<b>Module :</b>'.$a17['libelle_module'].'('.$a17['type'].')';  }; ?> <br/>
<?php if( $a17['type'] == true){ echo '<b>Prof :</b> '.$a17['nom'].' '.$a17['prenom'];}; ?><br />
<?php if( $a17['type'] == true){ echo '<b>Salle :</b> '.$a17['libelle_salle'];}; ?> <br>
<?php if( $a17['type'] =='Cours') {  echo '<b></b>';} else if( $a17['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a17['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a17['type'] =='Cours') break; } ?></td>
 
<td><?php  
  while($a18= mysqli_fetch_array($ligne18)) {?><br>
<?php if($a18['type'] == true) {  echo '<b>Module :</b>'.$a18['libelle_module'].'('.$a18['type'].')';  }; ?> <br/>
<?php if( $a18['type'] == true){ echo '<b>Prof :</b> '.$a18['nom'].' '.$a18['prenom'];}; ?><br />
<?php if( $a18['type'] == true){ echo '<b>Salle :</b> '.$a18['libelle_salle'];}; ?> <br>
<?php if( $a18['type'] =='Cours') {  echo '<b></b>';} else if( $a18['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a18['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a18['type'] =='Cours') break; } ?></td>
  </tr>
  <tr>
    <td class="mam">Mercredi</td>
    <td><?php  
  while($a19= mysqli_fetch_array($ligne19)) {?><br>
<?php if($a19['type'] == true) {  echo '<b>Module :</b>'.$a19['libelle_module'].'('.$a19['type'].')';  }; ?> <br/>
<?php if( $a19['type'] == true){ echo '<b>Prof :</b> '.$a19['nom'].' '.$a19['prenom'];}; ?><br />
<?php if( $a19['type'] == true){ echo '<b>Salle :</b> '.$a19['libelle_salle'];}; ?> <br>
<?php if( $a19['type'] =='Cours') {  echo '<b></b>';} else if( $a19['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a19['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a19['type'] =='Cours') break; } ?></td>
 
   <td><?php  
  while($a20= mysqli_fetch_array($ligne20)) {?><br>
<?php if($a20['type'] == true) {  echo '<b>Module :</b>'.$a20['libelle_module'].'('.$a20['type'].')';  }; ?> <br/>
<?php if( $a20['type'] == true){ echo '<b>Prof :</b> '.$a20['nom'].' '.$a20['prenom'];}; ?><br />
<?php if( $a20['type'] == true){ echo '<b>Salle :</b> '.$a20['libelle_salle'];}; ?> <br>
<?php if( $a20['type'] =='Cours') {  echo '<b></b>';} else if( $a20['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a20['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a20['type'] =='Cours') break; } ?></td>
 
   <td style=" border-right:solid  #666;"><?php  
  while($a21= mysqli_fetch_array($ligne21)) {?><br>
<?php if($a21['type'] == true) {  echo '<b>Module :</b>'.$a21['libelle_module'].'('.$a21['type'].')';  }; ?> <br/>
<?php if( $a21['type'] == true){ echo '<b>Prof :</b> '.$a21['nom'].' '.$a21['prenom'];}; ?><br />
<?php if( $a21['type'] == true){ echo '<b>Salle :</b> '.$a21['libelle_salle'];}; ?> <br>
<?php if( $a21['type'] =='Cours') {  echo '<b></b>';} else if( $a21['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a21['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a21['type'] =='Cours') break; } ?></td>
 
   <td><?php  
  while($a22= mysqli_fetch_array($ligne22)) {?><br>
<?php if($a22['type'] == true) {  echo '<b>Module :</b>'.$a22['libelle_module'].'('.$a22['type'].')';  }; ?> <br/>
<?php if( $a22['type'] == true){ echo '<b>Prof :</b> '.$a22['nom'].' '.$a22['prenom'];}; ?><br />
<?php if( $a22['type'] == true){ echo '<b>Salle :</b> '.$a22['libelle_salle'];}; ?> <br>
<?php if( $a22['type'] =='Cours') {  echo '<b></b>';} else if( $a22['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a22['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a22['type'] =='Cours') break; } ?></td>
 
  <td><?php  
  while($a23= mysqli_fetch_array($ligne23)) {?><br>
<?php if($a23['type'] == true) {  echo '<b>Module :</b>'.$a23['libelle_module'].'('.$a23['type'].')';  }; ?> <br/>
<?php if( $a23['type'] == true){ echo '<b>Prof :</b> '.$a23['nom'].' '.$a23['prenom'];}; ?><br />
<?php if( $a23['type'] == true){ echo '<b>Salle :</b> '.$a23['libelle_salle'];}; ?> <br>
<?php if( $a23['type'] =='Cours') {  echo '<b></b>';} else if( $a23['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a23['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a23['type'] =='Cours') break; } ?></td>
 
    <td><?php  
  while($a24= mysqli_fetch_array($ligne24)) {?><br>
<?php if($a24['type'] == true) {  echo '<b>Module :</b>'.$a24['libelle_module'].'('.$a24['type'].')';  }; ?> <br/>
<?php if( $a24['type'] == true){ echo '<b>Prof :</b> '.$a24['nom'].' '.$a24['prenom'];}; ?><br />
<?php if( $a24['type'] == true){ echo '<b>Salle :</b> '.$a24['libelle_salle'];}; ?> <br>
<?php if( $a24['type'] =='Cours') {  echo '<b></b>';} else if( $a24['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a24['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a24['type'] =='Cours') break; } ?></td>
 
  </tr>
  <tr>
    <td class="mam">Jeudi</td>
   <td><?php  
  while($a25= mysqli_fetch_array($ligne25)) {?><br>
<?php if($a25['type'] == true) {  echo '<b>Module :</b>'.$a25['libelle_module'].'('.$a25['type'].')';  }; ?> <br/>
<?php if( $a25['type'] == true){ echo '<b>Prof :</b> '.$a25['nom'].' '.$a25['prenom'];}; ?><br />
<?php if( $a25['type'] == true){ echo '<b>Salle :</b> '.$a25['libelle_salle'];}; ?> <br>
<?php if( $a25['type'] =='Cours') {  echo '<b></b>';} else if( $a25['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a25['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a25['type'] =='Cours') break; } ?></td>
 
<td><?php  
  while($a26= mysqli_fetch_array($ligne26)) {?><br>
<?php if($a26['type'] == true) {  echo '<b>Module :</b>'.$a26['libelle_module'].'('.$a26['type'].')';  }; ?> <br/>
<?php if( $a26['type'] == true){ echo '<b>Prof :</b> '.$a26['nom'].' '.$a26['prenom'];}; ?><br />
<?php if( $a26['type'] == true){ echo '<b>Salle :</b> '.$a26['libelle_salle'];}; ?> <br>
<?php if( $a26['type'] =='Cours') {  echo '<b></b>';} else if( $a26['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a26['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a26['type'] =='Cours') break; } ?></td>
 
 
    <td style=" border-right:solid  #666;"><?php  
  while($a27= mysqli_fetch_array($ligne27)) {?><br>
<?php if($a27['type'] == true) {  echo '<b>Module :</b>'.$a27['libelle_module'].'('.$a27['type'].')';  }; ?> <br/>
<?php if( $a27['type'] == true){ echo '<b>Prof :</b> '.$a27['nom'].' '.$a27['prenom'];}; ?><br />
<?php if( $a27['type'] == true){ echo '<b>Salle :</b> '.$a27['libelle_salle'];}; ?> <br>
<?php if( $a27['type'] =='Cours') {  echo '<b></b>';} else if( $a27['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a27['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a27['type'] =='Cours') break; } ?></td>
 
 
   <td><?php  
  while($a28= mysqli_fetch_array($ligne28)) {?><br>
<?php if($a28['type'] == true) {  echo '<b>Module :</b>'.$a28['libelle_module'].'('.$a28['type'].')';  }; ?> <br/>
<?php if( $a28['type'] == true){ echo '<b>Prof :</b> '.$a28['nom'].' '.$a28['prenom'];}; ?><br />
<?php if( $a28['type'] == true){ echo '<b>Salle :</b> '.$a28['libelle_salle'];}; ?> <br>
<?php if( $a28['type'] =='Cours') {  echo '<b></b>';} else if( $a28['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a28['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a28['type'] =='Cours') break; } ?></td>
 
   <td><?php  
  while($a29= mysqli_fetch_array($ligne29)) {?><br>
<?php if($a29['type'] == true) {  echo '<b>Module :</b>'.$a29['libelle_module'].'('.$a29['type'].')';  }; ?> <br/>
<?php if( $a29['type'] == true){ echo '<b>Prof :</b> '.$a29['nom'].' '.$a29['prenom'];}; ?><br />
<?php if( $a29['type'] == true){ echo '<b>Salle :</b> '.$a29['libelle_salle'];}; ?> <br>
<?php if( $a29['type'] =='Cours') {  echo '<b></b>';} else if( $a29['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a29['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a29['type'] =='Cours') break; } ?></td>
 
<td><?php  
  while($a30= mysqli_fetch_array($ligne30)) {?><br>
<?php if($a30['type'] == true) {  echo '<b>Module :</b>'.$a30['libelle_module'].'('.$a30['type'].')';  }; ?> <br/>
<?php if( $a30['type'] == true){ echo '<b>Prof :</b> '.$a30['nom'].' '.$a30['prenom'];}; ?><br />
<?php if( $a30['type'] == true){ echo '<b>Salle :</b> '.$a30['libelle_salle'];}; ?> <br>
<?php if( $a30['type'] =='Cours') {  echo '<b></b>';} else if( $a30['type'] ==('TD' || 'TP')) {   echo '<b>Groupe :</b> '.$a30['libelle_groupe'];} else echo'<b></b> '; ?> <br><?php if ( $a30['type'] =='Cours') break; } ?></td>
  </tr>
</table>
<?php   } ?>
</center>
 </body>
</html>
le code de la connexion à la base de donnée est :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
//connexion à la base de données
    $db_username = 'root';
    $db_password = 'sohaib';
    $db_name     = 'base_memoire_fin_etude';
    $db_host     = 'localhost';
    $db = mysqli_connect($db_host, $db_username, $db_password,$db_name)
           or die('could not connect to database');
 
// verifier la connexion
    if($db === false){
           die("ERROR: Could not connect. " . mysqli_connect_error());
}
?>
le code de la BDD est :
Code SQL : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
-- phpMyAdmin SQL Dump
-- version 3.4.5
-- http://www.phpmyadmin.net
--
-- Client: 127.0.0.1
-- Généré le : Mer 19 Juillet 2017 Ã* 12:22
-- Version du serveur: 5.5.16
-- Version de PHP: 5.3.8
 
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
 
 
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
 
--
-- Base de données: `base_memoire_fin_etude`
--
 
-- --------------------------------------------------------
 
--
-- Structure de la table `disponibilite`
--
 
CREATE TABLE IF NOT EXISTS `disponibilite` (
  `id_disp` int(11) NOT NULL AUTO_INCREMENT,
  `disponibilite` varchar(30) NOT NULL,
  `annee_uni` varchar(9) NOT NULL,
  `semestre` varchar(10) NOT NULL,
  `id_prof` int(11) NOT NULL,
  PRIMARY KEY (`id_disp`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=313 ;
 
 
-- --------------------------------------------------------
 
--
-- Structure de la table `enseigne`
--
 
CREATE TABLE IF NOT EXISTS `enseigne` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_prof` int(11) NOT NULL,
  `id_module` int(11) NOT NULL,
  `id_semestre` int(11) NOT NULL,
  `id_formation` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;
 
 
-- --------------------------------------------------------
 
--
-- Structure de la table `formation`
--
 
CREATE TABLE IF NOT EXISTS `formation` (
  `id_formation` int(11) NOT NULL AUTO_INCREMENT,
  `nom_formation` varchar(15) NOT NULL,
  `cycle` varchar(15) NOT NULL,
  `nbre_semestre` int(5) NOT NULL,
  PRIMARY KEY (`id_formation`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ;
 
 
 
-- --------------------------------------------------------
 
--
-- Structure de la table `gestion_section`
--
 
CREATE TABLE IF NOT EXISTS `gestion_section` (
  `id_section` int(11) NOT NULL AUTO_INCREMENT,
  `lib_section` varchar(15) DEFAULT NULL,
  `id_formation` int(11) DEFAULT NULL,
  `id_semestre` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_section`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=40 ;
 
 
 
-- --------------------------------------------------------
 
--
-- Structure de la table `groupe`
--
 
CREATE TABLE IF NOT EXISTS `groupe` (
  `id_groupe` int(11) NOT NULL AUTO_INCREMENT,
  `libelle_groupe` varchar(15) DEFAULT NULL,
  `id_formation` int(11) DEFAULT NULL,
  `id_semestre` int(11) DEFAULT NULL,
  `id_section` int(11) NOT NULL,
  PRIMARY KEY (`id_groupe`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=22 ;
 
 
 
-- --------------------------------------------------------
 
--
-- Structure de la table `login`
--
 
CREATE TABLE IF NOT EXISTS `login` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `pseudo` varchar(30) NOT NULL,
  `passe` varchar(30) NOT NULL,
  `statut` varchar(15) NOT NULL,
  `Num` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=109 ;
 
 
 
-- --------------------------------------------------------
 
--
-- Structure de la table `module`
--
 
CREATE TABLE IF NOT EXISTS `module` (
  `id_module` int(11) NOT NULL AUTO_INCREMENT,
  `id_formation` int(11) NOT NULL,
  `libelle_module` varchar(15) NOT NULL,
  `volume_horaire` int(5) NOT NULL,
  `id_semestre` int(11) NOT NULL,
  PRIMARY KEY (`id_module`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=52 ;
 
 
-- --------------------------------------------------------
 
--
-- Structure de la table `prof`
--
 
CREATE TABLE IF NOT EXISTS `prof` (
  `id_prof` int(11) NOT NULL AUTO_INCREMENT,
  `civilite` varchar(15) NOT NULL,
  `nom` varchar(15) NOT NULL,
  `prenom` varchar(15) NOT NULL,
  `tel` int(15) NOT NULL,
  `email` varchar(30) NOT NULL,
  PRIMARY KEY (`id_prof`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=74 ;
 
 
 
-- --------------------------------------------------------
 
--
-- Structure de la table `salle`
--
 
CREATE TABLE IF NOT EXISTS `salle` (
  `id_salle` int(11) NOT NULL AUTO_INCREMENT,
  `libelle_salle` varchar(15) NOT NULL,
  `type` varchar(15) NOT NULL,
  `bloc` varchar(15) NOT NULL,
  `capacite` int(10) NOT NULL,
  PRIMARY KEY (`id_salle`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=31 ;
 
 
 
-- --------------------------------------------------------
 
--
-- Structure de la table `seance`
--
 
CREATE TABLE IF NOT EXISTS `seance` (
  `id_for` int(11) NOT NULL,
  `id_sem` int(11) NOT NULL,
  `id_gr` int(11) NOT NULL,
  `id_pr` int(11) NOT NULL,
  `id_mod` int(11) NOT NULL,
  `id_sal` int(11) NOT NULL,
  `id_sec` int(11) NOT NULL,
  `seance` varchar(5) NOT NULL,
  `pg_hr` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 
-- --------------------------------------------------------
 
--
-- Structure de la table `semestre`
--
 
CREATE TABLE IF NOT EXISTS `semestre` (
  `id_semestre` int(11) NOT NULL AUTO_INCREMENT,
  `session` varchar(30) NOT NULL,
  `libelle_semestre` varchar(15) DEFAULT NULL,
  `date_debut_sem` date DEFAULT NULL,
  `date_fin_sem` date DEFAULT NULL,
  `id_formation` int(11) NOT NULL,
  PRIMARY KEY (`id_semestre`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=39 ;
 
 
-- --------------------------------------------------------
 
--
-- Structure de la table `utilisateur`
--
 
CREATE TABLE IF NOT EXISTS `utilisateur` (
  `id_user` int(11) NOT NULL AUTO_INCREMENT,
  `civilite` varchar(5) NOT NULL,
  `nom` varchar(30) NOT NULL,
  `prenom` varchar(30) NOT NULL,
  `tel` int(10) NOT NULL,
  `email` varchar(20) NOT NULL,
  PRIMARY KEY (`id_user`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ;
 
 
 
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
je suis vraiment besoin de l'aide
merci