Je fait un select dans une table qui est vide pour le moment.
Dans le code, je fait :
Et pourtant à l'exécution j'obtiens en source de page HTML :
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 Do While Not rsAntigerm.EOF date_antigerm1 = rsAntigerm(0) prod_antigerm1 = rsAntigerm(1) dose_antigerm1 = rsAntigerm(2) mode_antigerm1 = rsAntigerm(3) Response.write(" anti : " & date_antigerm1) Response.flush 'ca c est pour débuguer %> <tr> <td width="12%"><%=date_antigerm1%> </td> <td width="26%"><%=prod_antigerm1%> </td> <td width="7%"><%=dose_antigerm1%> </td> <td width="55%"><%=mode_antigerm1%> </td> </tr> <% rsAntigerm.movenext Loop
Et ce à l'infini !!! Comme si il ne trouvais jamais rsAntigerm.EOF ???
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 anti : <tr> <td width="12%"> </td> <td width="26%"> </td> <td width="7%"> </td> <td width="55%"> </td> </tr> anti : <tr> <td width="12%"> </td> <td width="26%"> </td> <td width="7%"> </td> <td width="55%"> </td> </tr>![]()
Pour le coup, je ne comprend plus rien.
Puisque ma table est vide, mon RS est forcément à EOF, donc je ne devrait pas exécuter ce qui est dans le "Do while .... loop" !!!!
Et pourtant, il le fait ??? C'est à devenir fou ce truc !!!
Quelqu'un aurait une idée ??
Partager