car ma question revient a savoir comment cela se fait qu'il ne me fasse pas correctement ce code :
1 2 3 4 5 6 7 8 9 10 11 12
| <%@LANGUAGE="VBSCRIPT"%>
<!-- #include File="../Includes/DS_OPEN_BASE.asp"-->
<!-- #include File="../Includes/DS_SESSION.asp"-->
<!-- #include File="../Includes/DS_DECLARATION.asp"-->
<!-- #include File="../Includes/DS_FONCTIONS.asp"-->
<!-- #include File="../Includes/INCLUDES.asp"-->
<%VerifLangue("home.asp")
strQuery="SELECT * FROM Paragraphe, Style WHERE Paragraphe.page_id=(SELECT page_id FROM Page WHERE page_nom='home.asp' AND langue_id='"&Session("Langue")&"')AND langue_id ='"&Session("Langue")&"'AND Paragraphe.style_id=Style.style_id"
(...)
<td colspan="2" width="75%" valign="top">
<!-- #include File="../Modele/Test.asp"-->
</td> |
avec mon fichier test.asp qui est du style :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| <table border=0 width=100% cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td colspan=2 class="trNoirSansTexte"><img src="images/espaceur.gif" width="1" height="5"></td>
</tr>
<% TrouverText 1
while not objRS.EOF
%>
<td colspan=2 class=<%=objRS("style_lib")%>><%=objRS("paragraphe_text")%></td>
<% objRS.movenext
wend
objRS.close
%>
<tr>
</table> |
et avec dans mon fichier DS_FONCTIONS.asp j'ai une fonction du genre :
1 2 3 4 5
| function TrouverText(IdPara)
strQueryText = StrQuery & "AND paragraphe_id="&IdPara&""
objRS.Open strQueryText
end function |
or il me renvoie comme erreur :
syntaxe incorrecte vers 'paragraphe_id'.
Mais ce code marche tres bien si je ne fais pas d'include, donc je pense que le probleme vient de la... Quelqu'un aurait il une solution?
Partager