Visualizzazione dei risultati da 1 a 5 su 5

Discussione: Problema apici

  1. #1

    Problema apici

    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..

  2. #2
    hai mescolato una concatenazione di stringa con una IF, per questo ti dà errore

  3. #3
    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
        %> 

  4. #4
    immagino tu voglia fare una cosa così

    codice:
    '''''     html = html & ""&if  ObjRec("descrizione") <> "" Then   ObjRec("descrizione")  else  end if &"" 
       if  ObjRec("descrizione") <> "" Then   
          html = html & ObjRec("descrizione")
       end if
    se così è, maro', t'eri inventato un linguaggio tutto tuo

  5. #5

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.