Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    Gli date un'occhiata???

    codice:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    
    <head>
    <title>Sans Titre</title>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
    </head>
    
    <body bgcolor="#FFFFFF">
    
    <table border="1">
    <tr bgcolor="orange">
    <td>Menù</td>
    </tr>
    <tr>
    <td>Inserisci nuovo</td>
    </tr>
    <tr>
    <td>Elimina</td>
    </tr>
    </table>
    
    
    <table border="1">
    <tr bgcolor="orange">
    <td>N.</td>
    <td>COD</td>
    <td>DATA</td>
    <td>TITOLO</td>
    <td>LUOGO</td>
    <td>ARGOMENTO</td>
    </tr>
    <%
    'On Error Resume Next
    
    Dim cn
    Set cn = Server.CreateObject("ADODB.Connection")
    cn.Open "driver={Microsoft Access Driver (*.mdb)};dbq="&Server.MapPath("/mdb-database/eventiwe.mdb")
    Dim sql
    sql = "SELECT * FROM EVE order by id desc"
    Set Rs=Cn.Execute(SQL)
    n = 1
    do while not rs.eof
    response.Write("<tr>")
    
    response.Write "<TD>" & n & "</TD>"
    c = 0
    do while not c = 5
    if c = 4 then
    response.Write "<td align=""center""><a href=""cancella2.asp?Id=" & rs(0)">"
    response.write rs(c)& "</a></td>"
    else
    response.Write "<td align=""center"">" 
    valore = rs(c)
    response.Write valore
    response.Write "</td>"
    end if
    c = c + 1
    loop
    response.Write("</tr>") 
    rs.movenext
    n = n + 1
    loop
    rs.Close
    cn.Close
    Set rs = Nothing
    Set cn = Nothing
    %>
    </table>
    </body>
    
    </html>
    perchè non mi fa visualizzare nulla?
    l'errore sarà nel blocco if perchè prima dell'inserimento funzionava....

  2. #2
    Complimenti per il titolo.
    Che errore ti da?

  3. #3
    mi associo.

    standing ovation per il titolo del thread. urge (ri)lettura attenta e consapevole del regolamento.

  4. #4
    ma ma ma.... l'avevo cancellato...!

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 © 2025 vBulletin Solutions, Inc. All rights reserved.