• Home
  • Forum
  • Fare Web
  • Classic ASP

select + allegato.pdf

  • Creatore Discussione Creatore Discussione iako77
  • Data di inizio Data di inizio 23 Ago 2006
I

iako77

Nuovo Utente
10 Ago 2005
19
0
0
  • 23 Ago 2006
  • #1
Ciao a tutti,
ho bisogno di un vostro aiuto:
io ho creato una semplice tabella(Tabella1) in access con 3 campi id,pdv,microarea
nella pagina .asp dopo aver creato la Sessione
<%
pdv=replace(Request.Querystring("pdv"),"'","''")
Session("pdv") = pdv
%>
e aver connesso la pag. al db
ho effettuato una select

SQL="SELECT * FROM Tabella1 WHERE pdv = '"&pdv&"' "
Set rec = Server.CreateObject("ADODB.Recordset")
Set Rec=Conn.Execute(SQL)

e ho inserito una condizione:

if rec.eof then
response.redirect ("datimancanti.htm")

end if
<a href="index.asp?microarea=<%=rec("microarea.pdf")%>">Allegato</a>
rec.close
%>

Il risultato che vorrei ottenere è che dopo il parametro pdv e la select l'utente pdv venisse identificato con la microaea di appartenenza e che fosse visualizzato il relativo documento che riporta il nome della microarea.pdf
In questo modo all'interno della medesima pag. potrei gestire n allegati x n microarea.
Potete aiutarmi please???
 

daviduccio

Moderatore
5 Ago 2004
1.114
0
0
40
Sicilia
www.daviduccio.it
  • 31 Ago 2006
  • #2
<%=rec("microarea")&".pdf"%>
 

lukeonweb

Utente Attivo
5 Mar 2003
5.175
13
38
47
Napoli
www.lucaruggiero.it
  • 31 Ago 2006
  • #3
beh io direi...

<%=rec("microarea")%>.pdf
 

daviduccio

Moderatore
5 Ago 2004
1.114
0
0
40
Sicilia
www.daviduccio.it
  • 31 Ago 2006
  • #4
e daglie che è uguale.
 
Devi accedere o registrarti per poter rispondere.

Discussioni simili

L
Ripetere Campi disabilitando input in riferimento ad un valore della select
  • Lucas1
  • 4 Apr 2023
  • jQuery
Risposte
0
Visite
5K
jQuery 4 Apr 2023
Lucas1
L
Ordinare option di una select
  • otto9due
  • 20 Feb 2023
  • Javascript
Risposte
5
Visite
2K
Javascript 22 Feb 2023
otto9due
W
MySQL ciclo in SELECT
  • wolfland
  • 26 Mag 2022
  • MySQL
Risposte
0
Visite
2K
MySQL 26 Mag 2022
wolfland
W
W
MySQL SELECT list dinamica
  • wolfland
  • 2 Feb 2022
  • MySQL
Risposte
0
Visite
2K
MySQL 2 Feb 2022
wolfland
W
M
Select Option dentro una Table
  • mapa
  • 17 Dic 2021
  • jQuery
Risposte
2
Visite
3K
jQuery 19 Dic 2021
mapa
M
G
Colorare menu select attraverso ricerca php
  • Gabriele_04
  • 18 Ott 2021
  • PHP
Risposte
0
Visite
1K
PHP 18 Ott 2021
Gabriele_04
G
L
problema con query select
  • luigithen
  • 25 Mag 2021
  • PHP
Risposte
2
Visite
2K
PHP 26 Mag 2021
luigithen
L
F
menù select dinamico da db in php
  • fata1009
  • 15 Mag 2021
  • PHP
Risposte
3
Visite
2K
PHP 15 Mag 2021
zorro
D
popolare campi tra th alla select
  • dgianmarco
  • 5 Mag 2021
  • PHP
  • 2
Risposte
36
Visite
4K
PHP 3 Giu 2021
zorro
M
Estrarre valore con SELECT COUNT
  • miagy
  • 24 Mar 2021
  • PHP
Risposte
0
Visite
1K
PHP 24 Mar 2021
miagy
M
M
Creare un campo input select quantità di un numero intero prelevato dal db
  • maxnegri2036
  • 10 Mar 2021
  • PHP
Risposte
3
Visite
1K
PHP 11 Mar 2021
maxnegri2036
M
L
Select Dinamiche...da txt?
  • lucign0l0
  • 17 Feb 2021
  • PHP
Risposte
3
Visite
2K
PHP 18 Feb 2021
marino51
E
Php select option e ajax
  • Emanuele85
  • 17 Feb 2021
  • PHP
  • 2
Risposte
23
Visite
6K
PHP 11 Mar 2021
Emanuele85
E
R
Select concatenata che non funziona la seconda volta
  • _Rosy_
  • 29 Nov 2020
  • Ajax
Risposte
3
Visite
3K
Ajax 29 Nov 2020
WmbertSea
L
select join e sottrazione punti
  • luigithen
  • 1 Ott 2020
  • PHP
Risposte
13
Visite
2K
PHP 2 Ott 2020
luigithen
L
L
input dati con inser into select ?
  • luigithen
  • 24 Set 2020
  • PHP
Risposte
4
Visite
1K
PHP 25 Set 2020
luigithen
L
V
hierarchy-select
  • Vera
  • 21 Set 2020
  • jQuery
Risposte
0
Visite
2K
jQuery 21 Set 2020
Vera
V
Select concatenate php sql ajax
  • Emix
  • 3 Ago 2020
  • PHP
Risposte
2
Visite
2K
PHP 4 Ago 2020
Emix
F
query e form con select multipla
  • FMax
  • 23 Lug 2020
  • PHP
Risposte
17
Visite
5K
PHP 19 Ago 2020
FMax
F
T
recupero valori select multipla da android
  • tigerman1467
  • 12 Lug 2020
  • Javascript
Risposte
3
Visite
2K
Javascript 14 Lug 2020
Max 1
Condividi:
Facebook X (Twitter) LinkedIn WhatsApp e-mail Condividi Link
  • Home
  • Forum
  • Fare Web
  • Classic ASP
  • Italiano
  • Termini e condizioni d'uso del sito
  • Policy Privacy
  • Aiuto
  • Home
Community platform by XenForo® © 2010-2024 XenForo Ltd. | Traduzione a cura di XenForo Italia
Menu
Accedi

Registrati

  • Home
  • Forum
    • Nuovi Messaggi
    • Cerca...
  • Novità
    • Featured content
    • Nuovi Messaggi
    • Ultime Attività
X

Privacy & Transparency

We use cookies and similar technologies for the following purposes:

  • Personalized ads and content
  • Content measurement and audience insights

Do you accept cookies and these technologies?

X

Privacy & Transparency

We use cookies and similar technologies for the following purposes:

  • Personalized ads and content
  • Content measurement and audience insights

Do you accept cookies and these technologies?