Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 11
  1. #1

    visualizzare campi tabelle

    salve, vorrei sapere se si può visualizzare due volte lo stesso campo.

    perchè ho provato ma ne riesco a visualizzare uno solo, l'altro mi da errore.

    vi ringrazio anticipatamente.
    anko

  2. #2
    Vediamo il tuo codice e l'errore?

  3. #3
    questo è l'errore che mi da, dovrebbe uscire il numero 1 che lo stesso che esce nel campo numero:1

    http://www.campaniaforum.it/admin/le...id_messaggio=4

    questo è il codice che
    <%@LANGUAGE = JScript%>

    <%
    Response.Buffer = true;
    var Cn = new ActiveXObject("ADODB.Connection");
    Cn.Open("driver={Microsoft Access Driver (*.mdb)};dbq=" + Server.MapPath("/mdb-database/data.mdb"));

    var id_messaggio = new String(Request.QueryString("id_messaggio"));
    var MostraDomanda = Cn.Execute("SELECT * FROM varie WHERE id_messaggio LIKE '" + id_messaggio + "'");
    %>

    <body>
    numero:<%=MostraDomanda("file")%> (questo esce)
    relazione.pdf">leggi (questo non esce)
    </body>

  4. #4
    Probabilmente chiudi la connessione e il recordset prima di usare per la seconda volta il campo...

  5. #5
    ciao grazie per avermi risposto, comunque nn è ke sono un programmatore come hai potuto capire, quindi quando dici di aver chiuso la connessione intendi:
    <%Cn.Close()%>

    perchè questo comando lo messo alla fine dopo </html>

  6. #6
    Ce la fai a farci vedere tutta la pagina, tutta?

  7. #7
    <%@LANGUAGE = JScript%>

    <%
    var id_messaggio = new String(Request.QueryString("id_messaggio"));
    var MostraDomanda = Cn.Execute("SELECT * FROM varie WHERE id_messaggio LIKE '" + id_messaggio + "'");

    %>

    <html>
    <head>
    <meta http-equiv="Content-Language" content="it">
    <title>.::campaniaforum | studi sul territorio::.</title>
    </head>
    <link rel="stylesheet" type="text/css" href="../theme/stile.css">
    <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">

    <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
    <tr>
    <td width="10%"></td>
    <td width="80%"></td>
    <td width="10%"></td>
    </tr>
    <tr>
    <td width="10%"></td>
    <td width="80%"></td>
    <td width="10%"></td>
    </tr>
    <tr>
    <td width="10%"></td>
    <td width="80%"></td>
    <td width="10%"></td>
    </tr>
    <tr>
    <td width="10%"></td>
    <td width="80%" valign="top">
    <table border="0" width="100%" id="table2" cellspacing="0" cellpadding="0">
    <tr>
    <td width="20%" style="border-bottom: 1px solid #5C788F">
    <p style="margin-top: 0; margin-bottom: 0">
    [img]../images/tex_menu.gif[/img]</td>
    <td width="2%"></td>
    <td width="58%" valign="bottom">
    <table border="0" width="100%" id="table5" cellspacing="0" cellpadding="0">
    <tr>
    <td width="29%" valign="bottom">
    <p style="margin:5px 10px; ">
    gestione

    <b class="testo_orange"><font size="2">Varie e di interesse generale</font>[/b]</td>
    <td width="29%">
    <p align="right" style="margin:0 10px; ">
    menu

    logout

    &lt;&lt; torna indietro</td>
    </tr>
    <tr>
    <td width="29%" valign="bottom" style="border-bottom:1px solid #5C788F; border-left-width: 1px; border-right-width: 1px; "></td>
    <td width="29%" valign="bottom" style="border-bottom:1px solid #5C788F; border-left-width: 1px; border-right-width: 1px; ">
    <p align="right"></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td width="20%" valign="top">
    <table border="0" width="100%" id="table3" cellspacing="0" cellpadding="0">
    <tr>
    <td width="20%" valign="top">
    <table border="0" width="100%" id="table4" cellspacing="0" cellpadding="0">
    <tr>
    <td width="2%">
    [img]../images/pallino.gif[/img]</td>
    <td width="18%">
    <p style="margin-top: 5px; margin-bottom: 5px">
    gestione forum</td>
    </tr>
    <tr>
    <td width="2%">
    [img]../images/pallino.gif[/img]</td>
    <td width="18%" style="border-top: 1px solid #5C788F">
    <p style="margin-top: 5px; margin-bottom: 5px">
    gestione news</td>
    </tr>
    <tr>
    <td width="2%">
    [img]../images/pallino.gif[/img]</td>
    <td width="18%" style="border-bottom:1px solid #5C788F; border-top:1px solid #5C788F; ">
    <p style="margin-top: 5px; margin-bottom: 5px">
    <a class="link_menu_xx-10" href="gest_newsletter.asp">gestione
    newsletter</a></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    <td width="2%"></td>
    <td width="58%" valign="top">
    <table border="0" width="100%" id="table6" cellspacing="0" cellpadding="0">
    <tr>
    <td width="58%"><font size="1"></font></td>
    </tr>
    <tr>
    <td class="titolo_forum" width="58%">numero:<%=MostraDomanda("file")%></td>
    </tr>
    <tr>
    <td class="titolo_forum" width="58%">commento:</td>
    </tr>
    <tr>
    <td class="testo_forum" width="58%"><%=MostraDomanda("commento")%></td>
    </tr>
    <tr>
    <td class="titolo_forum" width="58%">titolo:</td>
    </tr>
    <tr>
    <td class="testo_forum" width="58%"><%=MostraDomanda("titolo")%></td>
    </tr>
    <tr>
    <td class="titolo_forum" width="58%">
    relazione.pdf">leggi &gt;
    </td>
    </tr>
    <tr>
    <td class="testo_forum" width="58%">
    <p align="justify"></td>
    </tr>
    <tr>
    <td class="testo_forum" width="58%"></td>
    </tr>
    <tr>
    <td class="testo_forum" width="58%">
    <p align="right">">Mod.
    ">Canc.</td>
    </tr>
    <tr>
    <td width="58%"></td>
    </tr>
    <tr>
    <td class="testo_forum" width="58%">

    </td>
    </tr>
    <tr>
    <td width="58%">
    </form>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    <td width="10%"></td>
    </tr>
    <tr>
    <td width="10%"></td>
    <td width="80%"></td>
    <td width="10%"></td>
    </tr>
    </table>
    </body>
    </html>
    <%Cn.Close()%>

  8. #8
    In effetti è strano...

  9. #9
    non mi da un errore è solo che non mi visualizza il numero prima di relazione.pdf

  10. #10
    inoltre ho un problema con il contatore di un db, cioè quando vado ad inserire una nuova stringa, tutto bene il contatore mi inizia il conteggio (1..2..3) a second a di quante stringhe ci sono, però se vado a cancellare una stringa ad esempio un utente iscritto alla newsletter, in contatore non mi scala il numero,
    cioè si ferma a 2 anke se alla fine c'è solo una stringa.

    come posso fare? devo impostare qualcosa nel db?

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.