Bonjour
Je cale sur le problème suivant, en effet, ce code fonctionne parfaitement en local, mais pas sur mon site, et j'avoue ne pas trouver la raison, j'ai bien entendu vérifier les identifiants de connexion
Une aide sur le chemin à suivre ....
En vous remerciant:
L'affichage du tableau:
L'affichage de l'entête:
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 <?php //connection au serveur require 'BDD.php'; $mysqli = new mysqli($db_host, $db_username, $db_password, $db_name); $mysqli->set_charset("utf8"); $requete = 'SELECT ID,CONT_TYPE,CONT_SOCIAL,CONT_ADR1,CONT_ADR2,CONT_ZIP,CONT_VILLE,CONT_COMMENTS,CONT_CONTACT1,CONT_PHONE1,CONT_MAIL1 FROM contacts '; $resultat = $mysqli->query($requete); while ($ligne = $resultat->fetch_assoc()) { echo '<tr></tr> <tr> <td .onclick="changeColor(this)">'. $ligne['ID'].'</td> <td> '.$ligne['CONT_TYPE'].'</td> <td> '.$ligne['CONT_SOCIAL'].'</td> <td> '.$ligne['CONT_ADR1'].'</td> <td> '.$ligne['CONT_ADR1'].'</td> <td> '.$ligne['CONT_ZIP'].'</td> <td> '.$ligne['CONT_VILLE'].'</td> <td> '.$ligne['CONT_COMMENTS'].'</td> <td> '.$ligne['CONT_CONTACT1'].'</td> <td> '.$ligne['CONT_PHONE1'].'</td> <td> '.$ligne['CONT_MAIL1'].'</td> <td> <form action="#example" method="GET"> <input type="hidden" name="valeur" id="valeur" value="'.$ligne['ID'].'"> <input type="hidden" name="login" id="login"> <input type="submit" style="background:#FF8C00;border: 1px solid #FF8C00;color: #000000;" id="submit1" name="btn_update" value="Mise à jour" > </form> <td> <form action="#modalNew" method="POST"> <input type="submit" style="background:#098c6b;border: 1px solid #098c6b;color: #FFFFFF;" id="submit2" name="btn_new" value="Nouveau" > </form> <tr>'; } $mysqli->close(); ?>
Une fois ce problème réglé, j’intégrerais la mise en couleur et la taille de police dans mon fichier CSS bien entendu
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<table id="table1" style=" margin-left:80px;"> <!-- Destiné à l'envoi des données dans la page de modification UserUpdate.html --> <tr> <th bgcolor="#5F9EA0"><FONT size="4" color="#00000" face="Times New Roman"><b>Matricule</b></font></th> <th bgcolor="#5F9EA0"><FONT size="4" color="#00000" face="Times New Roman"><b>Type</b></font></th> <th bgcolor="#5F9EA0"><FONT size="4" color="#00000" face="Times New Roman"><b>Raison social</b></font></th> <th bgcolor="#5F9EA0"><FONT size="4" color="#00000" face="Times New Roman"><b>Adresse</b></font></th> <th bgcolor="#5F9EA0"><FONT size="4" color="#00000" face="Times New Roman"><b>Adresse complémentaire</b></font></th> <th bgcolor="#5F9EA0"><FONT size="4" color="#00000" face="Times New Roman"><b>Code postal</b></font></th> <th bgcolor="#5F9EA0"><FONT size="4" color="#00000" face="Times New Roman"><b>Ville</b></font></th> <th bgcolor="#5F9EA0"><FONT size="4" color="#00000" face="Times New Roman"><b>Commentaires</b></font></th> <th bgcolor="#5F9EA0"><FONT size="4" color="#00000" face="Times New Roman"><b>Contact principal</b></font></th> <th bgcolor="#5F9EA0"><FONT size="4" color="#00000" face="Times New Roman"><b>Téléphone</b></font></th> <th bgcolor="#5F9EA0"><FONT size="4" color="#00000" face="Times New Roman"><b>Courriel</b></font></th> <br> </tr> <?php require 'contact_req.php';?> </table>
Partager