non riesco a far funzionare il codice sopra è sicuramente un problema di apici qualche aiutino..Codice PHP:html = html & "<a title=' "&if ObjRec("descrizione") <> "" Then ObjRec("descrizione") else end if &" '>"
![]()
non riesco a far funzionare il codice sopra è sicuramente un problema di apici qualche aiutino..Codice PHP:html = html & "<a title=' "&if ObjRec("descrizione") <> "" Then ObjRec("descrizione") else end if &" '>"
![]()
hai mescolato una concatenazione di stringa con una IF, per questo ti dà errore
questo è il mio cod. come potrei risolvere...
Codice PHP:function showimage()
dim HTML
html = ""
if imagenr = 4 then 'numero di colonne
html = "<tr></tr>"
imagenr = 0
end if%>
<%
html = html & "<td align='center' height='80' valign='top'><a title='"
html = html & ""&if ObjRec("descrizione") <> "" Then ObjRec("descrizione") else end if &""
html = html & "href='img/gallery/"&ObjRec("foto")&"' rel='lightbox[roadtrip]'>[img]sendbinarygallery.asp?path="&Path&"[/img]</a></td>"
html = html & "</tr></table></td>"
showimage = html
end function
%>
immagino tu voglia fare una cosa così
se così è, maro', t'eri inventato un linguaggio tutto tuocodice:''''' html = html & ""&if ObjRec("descrizione") <> "" Then ObjRec("descrizione") else end if &"" if ObjRec("descrizione") <> "" Then html = html & ObjRec("descrizione") end if![]()
si perfetto ...![]()
grazie