Bonjour,
Voilà je vous explique mon site avant était sur un serveur avec php 5.3 (tout fonctionnait)
On est passé à un serveur php 5.6.
Je ne veux pas augmenter de version php, car pour l'instant j'y connais rien à mysqli & pdo.
Toutes les requêtes mysql de mon site fonctionne, même celle dans le même dossier que la page ci-dessous.
Dans toutes les pages de ce dossier je reprends ceci :
Sur cette page la tout ce qui est html & php apparait bien, sauf que mes requêtes mysql ne s'affiche pas.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 header('Content-type: text/html; charset=utf-8'); include('includes/fonctions.php'); connexionbdd(); global $current_user; get_currentuserinfo();
La base de donnée mysql & la table existe, sur toutes les autres pages ils n'y a aucun soucis.
Avez-vous une idée pour m'aider svp ?
Merci d'avance
Voici le code entier de la page :
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 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <meta charset="UTF-8"> <?php error_reporting(E_ALL); ini_set("display_errors", 1); header('Content-type: text/html; charset=utf-8'); include('includes/fonctions.php'); connexionbdd(); global $current_user; get_currentuserinfo(); $pick_date = date("Y-m-d"); $pick_heure = date("H:i:s"); $pick_date_view = date("d/m/Y", strtotime($pick_date)); $sql_callpicking = "SELECT * FROM wp_callpicking WHERE recall_cloture != 'Oui' ORDER BY sickness DESC, urgent DESC, pick_date ASC, pick_heure ASC"; // on envoie la requête $req_callpicking = mysql_query($sql_callpicking) or die('Erreur SQL !<br>'.$sql_callpicking.'<br>'.mysql_error()); //on obtient le resultat $res_callpicking = mysql_num_rows($req_callpicking); //nombre de recalls à faire $sql_count_todo = "SELECT count(id) FROM wp_callpicking WHERE recall_cloture != 'Oui'"; $req_count_todo = mysql_query($sql_count_todo) or die('Erreur SQL !<br>'.$sql_count_todo.'<br>'.mysql_error()); $res_count_todo = mysql_fetch_row($req_count_todo); //nombre de recalls fait $sql_count_done = "SELECT count(id) FROM wp_callpicking WHERE recall_cloture = 'Oui' AND recall_date = '2018-05-31'"; $req_count_done = mysql_query($sql_count_done) or die('Erreur SQL !<br>'.$sql_count_done.'<br>'.mysql_error()); $res_count_done = mysql_fetch_row($req_count_done); //nombre de recalls total $res_count_total = $res_count_todo[0]+$res_count_done[0]; ?> <br><br> <center><u><b>Recall à faire :</b></u></center> <br /><br /><br /> <table align="center" cellspacing="15"> <tr> <td> Id : </td> <td> Date pick : </td> <td> Heure pick : </td> <td> Consultant pick : </td> <td> Sickness : </td> <td> Urgent : </td> <td> Langue : </td> <td> Nom : </td> <td> Prénom : </td> <td> Numéro de téléphone : </td> <td> Adresse mail : </td> <td> Remarque : </td> <td> Recall : </td> </tr> <?php while($row = mysql_fetch_array($req_callpicking)) { ?> <tr> <td> <?php echo $row["id"]; ?> </td> <td> <?php echo date("d/m/Y", strtotime($row["pick_date"])); ?> </td> <td> <?php echo $row["pick_heure"]; ?> </td> <td> <?php echo $row["pick_consultant"]; ?> </td> <td> <center><?php echo $row["sickness"]; ?></center> </td> <td> <center><?php echo $row["urgent"]; ?></center> </td> <td> <?php echo $row["uzk_lang"]; ?> </td> <td> <?php echo $row["uzk_nom"]; ?> </td> <td> <?php echo $row["uzk_prenom"]; ?> </td> <td> <a href="tel:<?php echo $row["uzk_tel"]; ?>"><?php echo $row["uzk_tel"]; ?></a> </td> <td> <a href="mailto:?to=<?php echo $row["uzk_mail"]; ?> &subject=Suivi%20de%20votre%20appel%20du%20<?php echo date("d/m/Y", strtotime($row["pick_date"])); ?>%20à%20<?php echo $row["pick_heure"]; ?>"> <?php echo $row["uzk_mail"]; ?> </a> </td> <td> <?php echo $row["uzk_remarque"]; ?> </td> <td> <center><a href="callpicking_recall.php?id=<?php echo $row["id"]; ?>" title="Faire le recall"><img src="images/recall.jpg" width="20" height="20" alt="Recall Now !" /></a></center> </td> </tr> <?php } ?> </table> <br /><br /> <table align="right" cellspacing="15"> <tr> <td> Statut : </td> <td> Recalls : </td> </tr> <tr> <td> A faire : </td> <td> <b><?php echo $res_count_todo[0]; ?></b> </td> </tr> <tr> <td> Fait : </td> <td> <b><?php echo $res_count_done[0]; ?></b> </td> </tr> <tr> <td> Total : </td> <td> <b><?php echo $res_count_total; ?></b> </td> </tr> </table> </div> <br /><br />
Partager