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 > [Progetto] "Blog" Thread Rating: 1 votes, 4.00 average.
Pages (33): « First ... « 18 19 20 21 [22] 23 24 25 26 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
bledar
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 256 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 6 Days, 3:07:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ho usato anche io questa soluzione uttilizando l'oid come nome del file preprio perche e unico per definizione , ma pensavo ci fosse un modo per avere il contenuto dal db direttamente
grazie ragazzi

08-04-2007 22:01
Click Here to See the Profile for bledar Click here to Send bledar a Private Message Find more posts by bledar Add bledar to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gehur
.grande:maestro.

User info:
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma per la storia delle news correlate ad altre news voi come avete fatto? in teoria se ho la news 10 assiociata alla news 15, automaticamente anche la news 15 è assiociata alla news 10, vale il viceversa insomma, io ho fatto una tabella news con 2 campi, news e news correlata, ma se associo la news 10 alla 15, nella mia implementazione il viceversa non è automatico

09-04-2007 10:04
Click Here to See the Profile for Gehur Click here to Send Gehur a Private Message Find more posts by Gehur Add Gehur to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Simeon
:D

User info:
Registered: Aug 2004
Posts: 984 (0.13 al dì)
Location: Milano
Corso: Informatica
Anno: IT IS OVER!
Time Online: 14 Days, 19:29:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Gehur
ma per la storia delle news correlate ad altre news voi come avete fatto? in teoria se ho la news 10 assiociata alla news 15, automaticamente anche la news 15 è assiociata alla news 10, vale il viceversa insomma, io ho fatto una tabella news con 2 campi, news e news correlata, ma se associo la news 10 alla 15, nella mia implementazione il viceversa non è automatico


Io il viceversa non l'ho implementato... ma dovendolo fare non mi sembra cosi' complesso.

09-04-2007 12:11
Click Here to See the Profile for Simeon Click here to Send Simeon a Private Message Find more posts by Simeon Add Simeon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gehur
.grande:maestro.

User info:
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

be ma come fai a non implementarlo, scusa se quando guardi la news 10, vedi che è correlata alla news 15, quando guardi la news 15 devi vedere che è correlata alla news 10, si be comuqne io avevo pensato di fare in questo modo, quando associ la news 1 alla 3, associ anche la 3 alla 1, il tutto secondo me

09-04-2007 13:20
Click Here to See the Profile for Gehur Click here to Send Gehur a Private Message Find more posts by Gehur Add Gehur to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
bledar
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 256 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 6 Days, 3:07:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

o cosi o se hai una tabela
newtonews(id from , id to)
ti cerchi l'id della news nell campo id to e da quella tupla prendi l'd from cioe non metti il viceversa nella tabella ma semplicemente lo prendi dalla tabella

09-04-2007 14:03
Click Here to See the Profile for bledar Click here to Send bledar a Private Message Find more posts by bledar Add bledar to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Simeon
:D

User info:
Registered: Aug 2004
Posts: 984 (0.13 al dì)
Location: Milano
Corso: Informatica
Anno: IT IS OVER!
Time Online: 14 Days, 19:29:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Gehur
be ma come fai a non implementarlo, scusa se quando guardi la news 10, vedi che è correlata alla news 15, quando guardi la news 15 devi vedere che è correlata alla news 10, si be comuqne io avevo pensato di fare in questo modo, quando associ la news 1 alla 3, associ anche la 3 alla 1, il tutto secondo me


Anche io farei cosi', pero' nelle specifiche non avevo capito che valesse anche il viceversa... Uff uno pensa sempre di aver finito e invece...

Last edited by Simeon on 09-04-2007 at 14:39

09-04-2007 14:36
Click Here to See the Profile for Simeon Click here to Send Simeon a Private Message Find more posts by Simeon Add Simeon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elcuchu
.amico.

User info:
Registered: Apr 2007
Posts: 33 (0.00 al dì)
Location: Milano
Corso:
Anno:
Time Online: 5:41:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

per prima cosa grazie ZONKER SEI UN GRANDE.

Poi ho un altro problema, io i file li carico direttamente sul server e salvo il percorso nella base di dati ma una volta li non so più come aprirli, fopen non funziona, fread non funziona ecccccc
C'è qualcuno che lo ha già fatto e può darmi una mano.

(per la discussione su come non duplicare i file io non uso l'oid ma il percorso del file e quindi quando lo inserisco nella base di dati in un attributo univoco trovo l'errore)

Grazie a tutti

09-04-2007 16:22
Click Here to See the Profile for elcuchu Click here to Send elcuchu a Private Message Find more posts by elcuchu Add elcuchu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
bledar
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 256 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 6 Days, 3:07:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

visto che hai caricato il percorso non c'e piu bisigno di aprire il file tramite fopen etc basta prendere dal db quell percorso e inserirlo dentro una tag html chiamat img se e une imagine o dente una tag html iframe che puoi uttilizzare sia per imaggini sia per file di testo etc , une esmpio con iframe
<iframe
src ="/images/file.jpeg"
width="100%">
</iframe>
<iframe
src ="/images/file.txt"
width="100%">
</iframe>
http://www.w3schools.com/tags/tag_iframe.asp

Last edited by bledar on 09-04-2007 at 16:42

09-04-2007 16:37
Click Here to See the Profile for bledar Click here to Send bledar a Private Message Find more posts by bledar Add bledar to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
bledar
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 256 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 6 Days, 3:07:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

come avete gestito le viste , visto che nel progetto dice
In particolare, per ogni utente generico viene definita una vista che, sulla base del profilo
attivo e degli argomenti di interesse, definisce i contenuti che vengono visualizzati dall’utente.
e dice anche
Inoltre, l’applicazione gestisce la visualizzazione dei
contenuti, sulla base delle viste associate all’utente in relazione al suo profilo.
cioe per ogni profilo che l'utente crea devo creare une vista e in base al profilo attivo scelgo la vista da usare?io l'ho interpretata cosi la cosa , voi?

09-04-2007 17:10
Click Here to See the Profile for bledar Click here to Send bledar a Private Message Find more posts by bledar Add bledar to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
zonker
.illuminato.

User info:
Registered: Mar 2003
Posts: 200 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 6:24:53 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

A leggere il testo per quello che c'è scritto andrebbe intrepretato così.
Ma è ovviamente una cagata in quanto viola il principio per cui una base di dati debba evolvere nel tempo modificando la propria istanza (ossia i dati) e non la propria struttura (ossia lo schema).
Una interpretazione sensata è che ai contenuti si acceda tramite una o più viste mettendo poi su queste viste delle condizioni di where in base all'utente e al suo profilo.

09-04-2007 17:51
Click Here to See the Profile for zonker Click here to Send zonker a Private Message Find more posts by zonker Add zonker to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gehur
.grande:maestro.

User info:
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io ho fatto come ha detto zonker se ho capito bene quello che ha detto

piuttosto io ho un problema con il profilo da assiociare all'utente

ho la tabella profilo che è collegata alla tabella utente tramite una tabella utente_profilo, il problema è che non so come prendere il profilo dalla tabella profilo e inserirlo nella tabella utente_profilo

come posso dire prendi l'ultimo profilo inserito..

09-04-2007 18:12
Click Here to See the Profile for Gehur Click here to Send Gehur a Private Message Find more posts by Gehur Add Gehur to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
zonker
.illuminato.

User info:
Registered: Mar 2003
Posts: 200 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 6:24:53 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Questo problema potrebbe essere risolto con le transazioni che non abbiamo visto a lezione oppure utilizzando oggetti propri di ogni singolo DBMS.
Quello che faccio io (che è una porcata di cui mi vergogno ma non ho ne voglia ne tempo per fare di meglio) è inserire il profilo e poi cercare tra i profili un profilo con le stesse caratteristiche ma che non compaia nella tabella utente_profilo. Tendenzialmente se non ci sono creazioni di profilo contemporanee e non ci sono record orfani dovrebbe trovarti quello che hai appena inserito che puoi quindi a questo punto inserire nella tabelle utente_profilo.
Un metodo più pulito sarebbe quello di andare a leggere su una sequence un valore per il nuovo profilo e inserirlo con quel idprofilo sia nella tabella dei profili che in quella utente_profilo.

09-04-2007 18:24
Click Here to See the Profile for zonker Click here to Send zonker a Private Message Find more posts by zonker Add zonker to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
bledar
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 256 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 6 Days, 3:07:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

hmm interesante la cosa , perche io non ho una tabella profilo_utente ma solo una tabella profilo con foreign key su id utente e con chiave primaria un id_profilo , questo mi permette di avvere piu profili per ogni utente (l'ho interpretata cosi la cosa visto che ogni profilo appartiene a un solo utente percio (1:1) ergo foreign key)
spero non sia una cagata :) :-D

09-04-2007 18:41
Click Here to See the Profile for bledar Click here to Send bledar a Private Message Find more posts by bledar Add bledar to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Simeon
:D

User info:
Registered: Aug 2004
Posts: 984 (0.13 al dì)
Location: Milano
Corso: Informatica
Anno: IT IS OVER!
Time Online: 14 Days, 19:29:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by bledar
hmm interesante la cosa , perche io non ho una tabella profilo_utente ma solo una tabella profilo con foreign key su id utente e con chiave primaria un id_profilo , questo mi permette di avvere piu profili per ogni utente (l'ho interpretata cosi la cosa visto che ogni profilo appartiene a un solo utente percio (1:1) ergo foreign key)
spero non sia una cagata :) :-D


Anche io ho fatto cosi', mi sembra la scelta piu' semplice e logica.

09-04-2007 18:50
Click Here to See the Profile for Simeon Click here to Send Simeon a Private Message Find more posts by Simeon Add Simeon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elcuchu
.amico.

User info:
Registered: Apr 2007
Posts: 33 (0.00 al dì)
Location: Milano
Corso:
Anno:
Time Online: 5:41:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by bledar
visto che hai caricato il percorso non c'e piu bisigno di aprire il file tramite fopen etc basta prendere dal db quell percorso e inserirlo dentro una tag html


Grazie mille per la risposta, ma cosi ho il problema di come far scegliere l'articolo da aprire all'utente, nel senso essendo codice html non li posso far passare il link.

Se mi sapresti aiutare di nuovo te ne sarei molto grato.

ciao

09-04-2007 19:29
Click Here to See the Profile for elcuchu Click here to Send elcuchu a Private Message Find more posts by elcuchu Add elcuchu 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:15.    Post New Thread    Post A Reply
Pages (33): « First ... « 18 19 20 21 [22] 23 24 25 26 » ... 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.073 seconds (74.55% PHP - 25.45% MySQL) con 24 query.