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 ... « 19 20 21 22 [23] 24 25 26 27 » ... 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

beh basta che metti il tuo path che hai caricato nel db come link e ti apre quel file
<a href="../images/forest.gif">testo del link.</a>
<a href="../images/nome.txt">testo del link.</a>

se non lo fai cosi , devi genereare del codice html tramite php

09-04-2007 19:44
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
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
beh basta che metti il tuo path che hai caricato nel db come link e ti apre quel file
<a href="../images/forest.gif">testo del link.</a>
<a href="../images/nome.txt">testo del link.</a>

se non lo fai cosi , devi genereare del codice html tramite php


Pensavo ad una cosa cosi:

Facevo scrivere all'utente il titolo dell'articolo che vuole aprire in un campo di testo, vado a prendere il link e li apro il file, per questo motivo che mi trovo in difficoltà.

cmq grazie mille

09-04-2007 21:42
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
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

Per fare così nel DB devi salvare o il link in formato "html" oppure il link relativo.
Ti faccio un esempio: metti che la home del server http sia sul percorso fisico del server c:\inetpub\wwwroot\ e che il file dell'articolo sia pippo.html in c:\inetpub\wwwroot\articoli.
se nel DB salvi c:\inetpub\wwwroot\articoli\pippo.html sei un po' inguaiato ;P
Devi salvare o http://nomeserver/articoli/pippo.html e poi proporre direttamente il link oppure il percorso relativo a partire dalla home quindi articoli/pippo.html (meglio) in questo caso non fai altro che passare al browser il percorso relativo e lui come per magia te lo visualizzarà.

09-04-2007 21:59
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
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 zonker
in questo caso non fai altro che passare al browser il percorso relativo e lui come per magia te lo visualizzarà.



Ok ammettiamo che l'utente scriva in un campo di testo tre.ppt, io con una query mi trovo l'indirizzo esatto di tre.ppt.
Ora che ho il link esatto lo salvi in $link, come faccio a passarlo all'html? posso scrivere src = "$link"?

09-04-2007 22:41
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

tramite php devi scrive cosi

echo "<iframe src='$link'>";
echo "</iframe>";
chiaramente $link lo recuperi dal db

10-04-2007 00:42
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
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
tramite php devi scrive cosi

echo "<iframe src='$link'>";
echo "</iframe>";
chiaramente $link lo recuperi dal db



Grazie ragazzi non so come farei senza di voi

10-04-2007 09:39
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

ciao ragazzi , io sono un po perplesso sulla facenda delle viste
anche se qualcosa con zoncer ho chiarito ma
lui dice


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.

Se io crea una vista per tutti gli utenti e poi su questa vista vado a selezionare mettendo delle condizioni di where e come se queste condizioni le mettessi direttamente alla tabella contenuti , cioe la vista non e di nessuna uttilita , potete farmi un esempio di come avvete fatto?
???????

10-04-2007 10:57
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

In effetti la vista non è di nessuna utilità...viene messa nelle specifiche secondo me solo per obbligarci ad usare almeno una vista nel DBMS, cosa che potrebbe tranquillamente essere evitata visto che di fatto le "viste" le si crea dinamicamente nell'applicazione via PHP o ASP accedendo alle tabelle.

10-04-2007 11:39
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
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

L'unica vista che ho usato si occupa solo di estrarre gli argomenti di un profilo attivo, e viene usata all'interno di una ENORME query...

Come l'avete gestita voi la storia dei profili e degli argomenti? Io ho fatto che se per esempio il profilo attivo ha come argomenti "informatica, sport", allora verranno estratti TUTTI i contenuti che hanno almeno uno dei due argomenti. Un contenuto "hobby,informatica" verra' estratto ad esempio.

10-04-2007 13:12
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
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

qualcuno mi sa dire che errore faccio nel seguente trigger
CREATE OR REPLACE FUNCTION modnum()
RETURNS "trigger" AS
$BODY$
DECLARE

BEGIN

UPDATE content SET mod_n = mod_n+1 WHERE id =
NEW.id;
RETURN NEW;
END;
$BODY$
LANGUAGE 'plpgsql' VOLATILE;

CREATE TRIGGER modnum
AFTER UPDATE
ON content
FOR EACH ROW
EXECUTE PROCEDURE modnum();

10-04-2007 13:42
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

voi come avete gestito l'ordine di importanza degli argomenti scelti?

lo fate scegliere all'utente oppure lo inserite in automatico

10-04-2007 13:59
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

io faccio scegliere al utente

10-04-2007 14:08
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

okei, per il trigger provato con after?, prima si fa l'update e poi si legge il valore new, o no??

ma poi a cosa servirà mai l' importanza:alsono:

Last edited by Gehur on 10-04-2007 at 14:33

10-04-2007 14:27
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

anche nel esempi sopra c'e scritto AFTER UPDATE :)

10-04-2007 14:44
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

a si scusa, ma sono davvero stanco, devo riuscire a finire questo progetto..

10-04-2007 14:45
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
All times are GMT. The time now is 19:15.    Post New Thread    Post A Reply
Pages (33): « First ... « 19 20 21 22 [23] 24 25 26 27 » ... 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.074 seconds (70.74% PHP - 29.26% MySQL) con 24 query.