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 > [Basi di Dati] Progetto "FANTACALCIO"
Pages (19): « First ... « 9 10 11 12 [13] 14 15 16 17 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

chi è riuscito ad inserire l'integrità referenziale in mySQL può contattarmi in pvt per favore? oppure scrivere qui in maniera semplice i passaggi, grazie!

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

14-05-2005 09:45
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sirio
.illuminato.

User info:
Registered: Mar 2003
Posts: 187 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Terzo
Time Online: 2 Days, 17:32:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by maynard80
chi è riuscito ad inserire l'integrità referenziale in mySQL può contattarmi in pvt per favore? oppure scrivere qui in maniera semplice i passaggi, grazie!



Io ho creato le tabelle usando l'interfaccia grafica (mysql query browse) dove basta porre un check, tuttavia credo che se fai la creazione dal prompt basta scrivere alla fine del comando INNODB.

Non so se funziona perchè non l'ho provata, ma credo che in rete c'è la documentazione.


P.S. Ma coloro che hanno finito il prog. perchè non postano nell'area filez i file per fare login e registarzione che tanto sono abbastanza standard???
Grazie a tutti

16-05-2005 16:08
Click Here to See the Profile for sirio Click here to Send sirio a Private Message Find more posts by sirio Add sirio to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Simbios
Pig G0D

User info:
Registered: Oct 2006
Posts: 1933 (0.27 al dì)
Location: corsico
Corso: persona seria
Anno: fuori da due anni
Time Online: 67 Days, 9:28:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

perchè per regolamento non si puo.

__________________
http://www.voglioscendere.ilcannocchiale.it/

Governare gli italiani non è impossibile, è inutile. (G.Giolitti)

16-05-2005 17:17
Click Here to See the Profile for Simbios Click Here to See the Blog of Simbios Click here to Send Simbios a Private Message Find more posts by Simbios Add Simbios to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sirio
.illuminato.

User info:
Registered: Mar 2003
Posts: 187 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Terzo
Time Online: 2 Days, 17:32:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Scusate, ma come state gestendo i permessi?
Io pensavo di usare una tabella ad hoc, altri suggerimenti?

18-05-2005 17:18
Click Here to See the Profile for sirio Click here to Send sirio a Private Message Find more posts by sirio Add sirio to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Petrik22
:the broser:

User info:
Registered: Jul 2003
Posts: 76 (0.01 al dì)
Location: Seregno
Corso: TICom
Anno: ultimo
Time Online: 1 Day, 5:39:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

avrei una domanda:
ma per importare file nella base di dati usando phpmyadmin come si fa?????:(
perchè c'è l'opzione "inserisci file di testo nella tabella" ma non riesco assolutamente a farla funzionare, cioè mi mette tutti i valori nel primo campo invece che dividerli...
chiedo aiuto!!!:D

:pccrash::swear:

26-05-2005 12:45
Click Here to See the Profile for Petrik22 Click here to Send Petrik22 a Private Message Visit Petrik22's homepage! Find more posts by Petrik22 Add Petrik22 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

beh che file devi importare? per quanto riguarda l'integrità referenziale mi spiegate quali sono le situazioni in cui c'è bisogno di chiavi esterne e via dicendo? i giocatori possono essere cancellati solo se di nessuno, le formazioni--->i voti--->i punteggi non cambiano, le date del calendario anche se modificate non modificano a cascata nulla.

ho 2 domande:
1)- come faccio a stampare una data, che si trova in formato datatime di mySQL, in modo italiano? nel senso
--->datatime: yyyy-mm-dd
--->modo italiano: dd-mm-yyyy
oltre che lavorare con le stringhe c'è qualche funzione interessante?
2)ho fatto i compitini, mi devo iscrivere all'appello per consegnare il progetto?


grassie

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

26-05-2005 20:14
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ok, sapete se esiste anche una funzione che controlla se una data è giusta? nel senso che se inserisco tuttora una data sbagliata (2005-01-35) viene immagazzinata la data di default 0000-00-00

esiste una funzione che data la stringa in input mi faccia un minimo di controllo prima di inserirla del DB? o devo fare tutto a mano?

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

27-05-2005 12:07
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Freddy3
il Lupo!!!

User info:
Registered: Nov 2003
Posts: 127 (0.02 al dì)
Location: Cantalupo
Corso: Informatica
Anno: LAUREATOOOO!!!
Time Online: 2 Days, 8:39:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Io ho implementato tutto con php.
Faccio fare a lui i controlli sugli inserimenti di tutto.
E' stato uno sbattimento atroce comunque. :shock:
L'integrità referenziale l'ho resa così perchè non riuscivo a implementarla con phpMyAdmin.
Cioè, ho unsa le istruzioni sql giuste, ma non andavano!
Quindi FORZA PHP!
Al massimo mi danno un voto basso, ma ho anche l'esame di Istituzioni da fare!!!
Per le date ho cercato funzioni php in internet ma poi le ho memorizzate come se giorno, mese ed anno fossero campi distinti di una stessa tabella.
Percui, al momento dell'inserimento, mi basta prendere il numero corrisondente alla campo desiderato (usato un form ad hoch). :D

Però non è il massimo della vita!

27-05-2005 13:40
Click Here to See the Profile for Freddy3 Click here to Send Freddy3 a Private Message Find more posts by Freddy3 Add Freddy3 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ragazzi con che funzione php controllo la differenza tra 2 date? io ho le date in formato datatime (yyyy-mm--dd hh:mm:ss) non capisco con quale funzione faccio sottrazioni tra date in questo formato (mi serve ad esempio per vedere quanto tempo manca ad una data, o se la data è gia passata)

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

29-05-2005 15:08
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
YoMo
.precettore.

User info:
Registered: Oct 2004
Posts: 96 (0.01 al dì)
Location: Placentia
Corso: Info triennale
Anno: laureato
Time Online: 2 Days, 0:18:13 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Potresti trasformare le date in formato timestamp (numero intero) e poi confrontarle con i semplici < = >. Io ad esempio le ho inserite nel database direttamente in formato timestamp, così nn devo continuare a fare noiose trasformazioni.

// Trasformo in formato timestamp (fornendo ora, minuti ecc.)
$data = mktime($ora,$minuti,$secondi,$mese,$giorno,$anno);


// Stampo la data in formato 'leggibile'
echo strftime ('%d %B %Y',$data);

29-05-2005 18:29
Click Here to See the Profile for YoMo Click here to Send YoMo a Private Message Find more posts by YoMo Add YoMo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
YoMo
.precettore.

User info:
Registered: Oct 2004
Posts: 96 (0.01 al dì)
Location: Placentia
Corso: Info triennale
Anno: laureato
Time Online: 2 Days, 0:18:13 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by maynard80
ok, sapete se esiste anche una funzione che controlla se una data è giusta? nel senso che se inserisco tuttora una data sbagliata (2005-01-35) viene immagazzinata la data di default 0000-00-00

esiste una funzione che data la stringa in input mi faccia un minimo di controllo prima di inserirla del DB? o devo fare tutto a mano?


// Verifico la validità delle date inserite
$verifica_data = checkdate($mese,$giorno,$anno);

if (!$verifica_data) echo 'PIRLA!!!!';
else inserimento_nel_database

29-05-2005 18:32
Click Here to See the Profile for YoMo Click here to Send YoMo a Private Message Find more posts by YoMo Add YoMo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

benissimo, io ho fatto i compitini, mi devo iscrivere al sifa, alla verbalizzazione o all'appello?

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

30-05-2005 00:06
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
fraile
.illuminato.

User info:
Registered: Jan 2003
Posts: 201 (0.02 al dì)
Location: Parabiago
Corso: CDL Informatica triennale
Anno: 4° Fuori corso
Time Online: 2 Days, 6:50:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Unhappy Traccia delle valutazioni dei calciatori

Ragazzi,ho un problemino, qualcuno mi spiega come è riuscito a risolvere il problema di tenere la traccia della valutazione dei giocatori per ogni giornatà, non riesco propio a capire come devo fare! tabella unica con valutazioni di tutte le giornate, oppure cosa
Ciao!!!
:(

__________________
*- 6 *

02-06-2005 14:49
Click Here to See the Profile for fraile Click here to Send fraile a Private Message Find more posts by fraile Add fraile to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
YoMo
.precettore.

User info:
Registered: Oct 2004
Posts: 96 (0.01 al dì)
Location: Placentia
Corso: Info triennale
Anno: laureato
Time Online: 2 Days, 0:18:13 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Io ho una tabella VALUTAZIONE con
nome_giocatore chiave esterna riferita alla tabella giocatore
numero_giornata chiave esterna riferita alla tabella giornata
voto

facile, no?

02-06-2005 15:23
Click Here to See the Profile for YoMo Click here to Send YoMo a Private Message Find more posts by YoMo Add YoMo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

le chiavi esterne alla fine con mySQL non le ho messe, pare non sia possibile implementare l'integrità referenziale.
Secondo voi va bene lo stesso se gestisco l'integrità referenziale con il php?

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

02-06-2005 17:19
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 22:37.    Post New Thread    Post A Reply
Pages (19): « First ... « 9 10 11 12 [13] 14 15 16 17 » ... Last »   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.150 seconds (36.20% PHP - 63.80% MySQL) con 24 query.