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 ~ informatica triennale > Dubbio progetto Basi
Pages (9): « First ... « 5 6 7 8 [9]   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
-Oblivion-
.primate.

User info:
Registered: Nov 2006
Posts: 67 (0.01 al dì)
Location: Seriate
Corso: Informatica
Anno: Quarto [Furoi corso]
Time Online: 22:52:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Qui potete trovare dijkstra in MYSQL.
http://www.artfulsoftware.com/infot...hp?&bw=1344#766

Questa è una versione rielaborata da queslla in T-Sql.
Il codice sembra difficile, ma se si fanno un po' di prove ce la si fa a capirlo.

Per quanto riguarda il codice usato, ovviamente oltre all html e php, abbiamo usato javascript.

__________________
Annunci Gratis : La nuova dimensione degli annuci online - Jabbi.it

Last edited by -Oblivion- on 18-06-2009 at 17:08

17-06-2009 10:49
Click Here to See the Profile for -Oblivion- Click here to Send -Oblivion- a Private Message Visit -Oblivion-'s homepage! Find more posts by -Oblivion- Add -Oblivion- to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Amorphis
.precettore.

User info:
Registered: Jan 2008
Posts: 81 (0.01 al dì)
Location:
Corso: informatica
Anno: 2
Time Online: 1 Day, 10:59:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non so perche dici ovviamente .. perche non e' insegnato ne richiesto usarlo .

17-06-2009 16:44
Click Here to See the Profile for Amorphis Click here to Send Amorphis a Private Message Find more posts by Amorphis Add Amorphis to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
-Oblivion-
.primate.

User info:
Registered: Nov 2006
Posts: 67 (0.01 al dì)
Location: Seriate
Corso: Informatica
Anno: Quarto [Furoi corso]
Time Online: 22:52:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Evviva la polemica!!

Vorresti realizzare il progetto senza html e php?! :D
E' vero, potresti utilizzare l'asp al posto del php, ma non ricordo se nelle specifiche è rischiesto esplicitamente in php... non è che sono tanti i linguaggi supportati per interfacciarsi con i database...

Per quanto riguarda l'html, qualsiasi tipo di interfaccia è da fare in html, a meno che tu non conosca altri linguaggi supportati dai browser...

__________________
Annunci Gratis : La nuova dimensione degli annuci online - Jabbi.it

Last edited by -Oblivion- on 18-06-2009 at 17:17

18-06-2009 17:11
Click Here to See the Profile for -Oblivion- Click here to Send -Oblivion- a Private Message Visit -Oblivion-'s homepage! Find more posts by -Oblivion- Add -Oblivion- to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
dArkLuis
.amico.

User info:
Registered: Apr 2008
Posts: 34 (0.01 al dì)
Location: Milano
Corso: informatica
Anno: 1
Time Online: 1 Day, 0:14:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusate, ma come si fa a richiamare una funzione, create con sql, attraverso php???

21-07-2009 23:26
Click Here to See the Profile for dArkLuis Click here to Send dArkLuis a Private Message Find more posts by dArkLuis Add dArkLuis to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
b.elite
.precettore.

User info:
Registered: Jan 2008
Posts: 99 (0.02 al dì)
Location: mi
Corso: info
Anno: 3
Time Online: 1 Day, 3:33:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by dArkLuis
scusate, ma come si fa a richiamare una funzione, create con sql, attraverso php???


ciao, usi la query "select none_funzione()" e poi la dai come parametro a mysql_query o pg_query a seconda del db che usi...

22-07-2009 12:20
Click Here to See the Profile for b.elite Click here to Send b.elite a Private Message Find more posts by b.elite Add b.elite to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
dArkLuis
.amico.

User info:
Registered: Apr 2008
Posts: 34 (0.01 al dì)
Location: Milano
Corso: informatica
Anno: 1
Time Online: 1 Day, 0:14:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io sto utilizzando postegreSQL e ho provato ad utilizzare pg_query ma mi da un warning:"pg_query():10 is not a valid PostegreSQL link resource in C:\...\..."
ed in effetti, se faccio echo del valore restituito, non mi stampa niente...quindi c'è qualche problema

22-07-2009 14:30
Click Here to See the Profile for dArkLuis Click here to Send dArkLuis a Private Message Find more posts by dArkLuis Add dArkLuis to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
b.elite
.precettore.

User info:
Registered: Jan 2008
Posts: 99 (0.02 al dì)
Location: mi
Corso: info
Anno: 3
Time Online: 1 Day, 3:33:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by dArkLuis
io sto utilizzando postegreSQL e ho provato ad utilizzare pg_query ma mi da un warning:"pg_query():10 is not a valid PostegreSQL link resource in C:\...\..."
ed in effetti, se faccio echo del valore restituito, non mi stampa niente...quindi c'è qualche problema


ma hai fatto la connessione al database?
dai un occhiata alle slide di montanelli che spiega passo passo come fare...
cmq mi sembra che pg_query voglia due parametri: la query e la connessione al db

22-07-2009 15:03
Click Here to See the Profile for b.elite Click here to Send b.elite a Private Message Find more posts by b.elite Add b.elite to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
dArkLuis
.amico.

User info:
Registered: Apr 2008
Posts: 34 (0.01 al dì)
Location: Milano
Corso: informatica
Anno: 1
Time Online: 1 Day, 0:14:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si, mi funziona tutto...pg_query mi funziona quando faccio altro, solo se richiamo la funziona non mi funziona. Sei sicuro che per chiamare le funzioni si utilizza il pg_query??

23-07-2009 12:00
Click Here to See the Profile for dArkLuis Click here to Send dArkLuis a Private Message Find more posts by dArkLuis Add dArkLuis to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
b.elite
.precettore.

User info:
Registered: Jan 2008
Posts: 99 (0.02 al dì)
Location: mi
Corso: info
Anno: 3
Time Online: 1 Day, 3:33:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by dArkLuis
si, mi funziona tutto...pg_query mi funziona quando faccio altro, solo se richiamo la funziona non mi funziona. Sei sicuro che per chiamare le funzioni si utilizza il pg_query??


sicurissimo, ho gia conseganto il progetto:cool:
fai così:

$db = pg_connect($parametri);
$sql="select nome_funzione()";
$risultato = pg_query($db,$sql);

fai attenzione agli apici se magari la tua funzione prende come parametri delle stringhe...
ma che errore ti da?

23-07-2009 17:27
Click Here to See the Profile for b.elite Click here to Send b.elite a Private Message Find more posts by b.elite Add b.elite to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
dArkLuis
.amico.

User info:
Registered: Apr 2008
Posts: 34 (0.01 al dì)
Location: Milano
Corso: informatica
Anno: 1
Time Online: 1 Day, 0:14:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non mi da proprio un errore, ma un warning, l'ho scritto qualche post prima. cmq si, prende una stringa come paramentro, quindi deve essere cosi:
$sql="SELECT gestione_turno('$nazione');";
$turno=pg_query($db,$sql);
giusto??

23-07-2009 23:31
Click Here to See the Profile for dArkLuis Click here to Send dArkLuis a Private Message Find more posts by dArkLuis Add dArkLuis to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
b.elite
.precettore.

User info:
Registered: Jan 2008
Posts: 99 (0.02 al dì)
Location: mi
Corso: info
Anno: 3
Time Online: 1 Day, 3:33:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by dArkLuis
non mi da proprio un errore, ma un warning, l'ho scritto qualche post prima. cmq si, prende una stringa come paramentro, quindi deve essere cosi:
$sql="SELECT gestione_turno('$nazione');";
$turno=pg_query($db,$sql);
giusto??


esatto io ho sempre fatto così, io facevo senza ; alla fine della query ma credo sia indifferente...

24-07-2009 13:45
Click Here to See the Profile for b.elite Click here to Send b.elite a Private Message Find more posts by b.elite Add b.elite to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
dArkLuis
.amico.

User info:
Registered: Apr 2008
Posts: 34 (0.01 al dì)
Location: Milano
Corso: informatica
Anno: 1
Time Online: 1 Day, 0:14:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ciao, forse non ho capito bene la traccia, ma come si fa ad avere punti PI alla fine del turno??Perchè il testo dice solo se si avrà avuto un aumento della popolazione e del risorse naturali...però non possono aumentare tutte e due contemporaenamente perchè il testo dice che uno fa diminuire l'altro. Quindi la mia domanda è in che situazione c'è un aumento di PI della nazione??

20-08-2009 23:15
Click Here to See the Profile for dArkLuis Click here to Send dArkLuis a Private Message Find more posts by dArkLuis Add dArkLuis to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
carla86
.illuminato.

User info:
Registered: Dec 2006
Posts: 219 (0.03 al dì)
Location: Milano
Corso: Informatica
Anno: Terzo
Time Online: 6 Days, 21:40:54 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Come avete fatto a fare la gestione dei turni?
Mi spiego meglio: Il testo dice ke un giocatore quando non è di turno può visualizzare i suoi dati (la nazione, quanti pi, quante citta e cosi via...) quindi nn lo posso sloggare ma allo stesso tempo gli devo togliere la possibilità d fare azioni..
Cosa avete fatto voi?

E un altra domanda: io sto utilizzando mysql. Dove posso mettere i trigger e le funzioni? in qualsiasi punto del file php o all'inizio? e le funzioni sql?

GRAZIE Carla

01-09-2009 22:32
Click Here to See the Profile for carla86 Click here to Send carla86 a Private Message Find more posts by carla86 Add carla86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 19:42.    Post New Thread    Post A Reply
Pages (9): « First ... « 5 6 7 8 [9]   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.045 seconds (75.67% PHP - 24.33% MySQL) con 28 query.