Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Basi di dati ~ comunicazione digitale > php
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
boban
.consigliere.

User info:
Registered: Dec 2003
Posts: 131 (0.02 al dì)
Location: qui
Corso: comunicazione digitale
Anno: 999999999
Time Online: 5 Days, 0:38:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
php

ciao a tutti, ho un problemino.....volevo inserire in un menu a tendina i risultati di una query...per poi andare a scegliere uno dei risultati che verra inserito in una delle mie tabelle di access. come faccio?qlc sa dirmi quale e lo script php che me lo permette???AIUTATEMI sono bloccato qui.

28-04-2004 09:45
Click Here to See the Profile for boban Click here to Send boban a Private Message Find more posts by boban Add boban to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.54 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Mmmmm non mi è molto chiaro cosa non riesci a fare di preciso. Se è solo per il menu a tendina basta fare così

code:
<select name="tendina" size="1"> <option value=10 selected>10</option> <option value=9>9</option> <option value=8>8</option> etc etc </select>

e lo metti all'interno di un form.

Sicuramente se cerchi su google trovi uno script completo in php :)

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

28-04-2004 18:53
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.54 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusate, post doppio.
Se qualche mod vuole segarlo... :D

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

Last edited by DeepBlue on 29-04-2004 at 00:00

28-04-2004 18:53
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
boban
.consigliere.

User info:
Registered: Dec 2003
Posts: 131 (0.02 al dì)
Location: qui
Corso: comunicazione digitale
Anno: 999999999
Time Online: 5 Days, 0:38:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si qst lo so.....forse non sono stato molto chiaro io....
quello che hai fatto tu è un normale menu a tendina....all'interno di quel menu voglio che compaiano i risultati di una query (ad esempio il risulteto di SELECT * FROM Appuntamenti)....poi l'utente dovrà scegliere una di queste opzioni......che verrà quindi poi inserita in una tabella attraverso una query di insert... spero di essermi spiegato un po meglio.

28-04-2004 22:41
Click Here to See the Profile for boban Click here to Send boban a Private Message Find more posts by boban Add boban to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.54 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non so se ho capito, sono un po' cotto :D
Ti pasto un codice, non so se funzia, l'ho scritto ora prendendo spunto da un libro.

code:
<?php $query = "SELECT opzione_tendina FROM ...."; $result = mysql_query($query); $dati = mysql_fetch_array($result); $opzione = $query_data["opzione_tendina"]; ?> <!-- codice html vario --> <SELECT NAME="nome" SIZE="1"> <?php for ($i=0; $i < count($array_opzioni); $i++) { if(!isset($opzione) && $i == 0) { echo "<OPTION SELECTED VALUE="". $array_opzioni[$i] . "">". $array_opzioni[$i] ."</OPTION>\n"; } else if($opzione == $array_opzioni[$i]) { echo "<OPTION SELECTED VALUE="". $array_opzioni[$i] . "">". $array_opzioni[$i] ."</OPTION>\n"; } else { echo "<OPTION VALUE="". $array_opzioni[$i] . "">". $array_opzioni[$i] ."</OPTION>\n"; } } ?> </SELECT>

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

29-04-2004 00:47
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
boban
.consigliere.

User info:
Registered: Dec 2003
Posts: 131 (0.02 al dì)
Location: qui
Corso: comunicazione digitale
Anno: 999999999
Time Online: 5 Days, 0:38:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

quello che hai scritto tu va usato se lo fai con mysql, io uso access cmq sono riuscito anche con access...lo script era molto simile al tuo GRAZIE CMQ......:D

29-04-2004 17:13
Click Here to See the Profile for boban Click here to Send boban a Private Message Find more posts by boban Add boban to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.54 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

dato che usavi php mi è venuta automatica l'associazione con MySQL.. :)

:ciaoo:

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

29-04-2004 17:22
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 07:58.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.182 seconds (69.19% PHP - 30.81% MySQL) con 23 query.