|
|
|
|
 |
|  |
 |
Lightman |
| [QUOTE][i]Originally posted by anto_anto [/i]
... |
03-04-2007 13:11 |
|
 |
Lightman |
.grande:maestro.

Registered: Jul 2002
Posts: 1517 (0.18 al dì)
Location:
Corso:
Anno:
Time Online: 5 Days, 6:24:06: [...]
Status: Offline
Edit | Report | IP: Logged |
Originally posted by anto_anto
Ciao, ci sarebbe qualcuno cosi gentile da dirmi come posso far inserire, nel database, un file all'utente?
Se vuoi inserire il file come large object (e quindi direttamente nel db), puoi usare pg_lo_import (se stai usando php, oppure un equivalente, cerca con lo_import)...
Alternativamente puoi uploadare il file sul server, e nel db mettere solo il riferimento al file. In tal caso pero' devi trovare il modo di impedire il duplicamento dei nomi dei file (io normalmente cambio il nome del file sul server da nome_file_originale a nome_del_file_originale_timestampinsecondialmoment
odellupload)...
__________________
"What peece of worke is a man, how noble in reason, how infinit in faculties, in forme and moouing, how expresse and admirable in action, how like an Angell in apprehension, how like a God: the beautie of the world; the paragon of Annimales; and yet to me, what is this Quintessence of dust: man delights not me" - Hamlet
|
|
03-04-2007 13:11 |
|
|
|  |
 |
anto_anto |
| grazie per la risposta
... |
03-04-2007 13:41 |
|
 |
anto_anto |
.novellino.
Registered: Jan 2006
Posts: 5 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 12:09:54 [...]
Status: Offline
Edit | Report | IP: Logged |
grazie per la risposta
ma non so come uploadare il file sul server...........
|
|
03-04-2007 13:41 |
|
|
|  |
 |
bledar |
| ma questo apello di aprile per potersi iscrivere e ... |
03-04-2007 15:50 |
|
 |
bledar |
.arcimaestro.

Registered: Oct 2003
Posts: 256 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 6 Days, 3:07:56 [...]
Status: Offline
Edit | Report | IP: Logged |
ma questo apello di aprile per potersi iscrivere e consegnare il progetto quando lo mettono???
|
|
03-04-2007 15:50 |
|
|
|  |
 |
Gehur |
| ma voi li avete usati gli indici nel database?? ... |
03-04-2007 19:19 |
|
 |
Gehur |
.grande:maestro.
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline
Edit | Report | IP: Logged |
ma voi li avete usati gli indici nel database??
|
|
03-04-2007 19:19 |
|
|
|  |
 |
bledar |
| e obligatorio? ... |
03-04-2007 19:44 |
|
 |
bledar |
.arcimaestro.

Registered: Oct 2003
Posts: 256 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 6 Days, 3:07:56 [...]
Status: Offline
Edit | Report | IP: Logged |
e obligatorio?
|
|
03-04-2007 19:44 |
|
|
|  |
 |
ponte |
| COME FACCIO AD INCREMENTARE IL NUMERO DI ACC AD OG ... |
03-04-2007 21:17 |
|
 |
ponte |
.amico.
Registered: Jan 2005
Posts: 39 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 5:10:37 [...]
Status: Offline
Edit | Report | IP: Logged |
COME FACCIO AD INCREMENTARE IL NUMERO DI ACC AD OGNI CONTENUTO?
|
|
03-04-2007 21:17 |
|
|
|  |
 |
zonker |
| Se guardi i miei vecchi post c'è scritto nel dett ... |
04-04-2007 13:50 |
|
 |
zonker |
.illuminato.
Registered: Mar 2003
Posts: 200 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 6:24:53 [...]
Status: Offline
Edit | Report | IP: Logged |
Se guardi i miei vecchi post c'è scritto nel dettaglio...
|
|
04-04-2007 13:50 |
|
|
|  |
 |
elcuchu |
| Dovrai confrontare la password per vedere se è co ... |
04-04-2007 16:26 |
|
 |
elcuchu |
.amico.
Registered: Apr 2007
Posts: 33 (0.00 al dì)
Location: Milano
Corso:
Anno:
Time Online: 5:41:55 [...]
Status: Offline
Edit | Report | IP: Logged |
Dovrai confrontare la password per vedere se è corretta e in caso affermativo fare un insert.
if($query = pg_query("SELECT password_utente FROM utente WHERE password_utente='$password' "))
{insert.....}
dove $password è la variabile che mi contiene ciò che inserisce l'utente.
però questo if non funziona, perchè anche se la password non esiste mi fa cmq inserire. chi mi potrebbe dare una mano? grazie
|
|
04-04-2007 16:26 |
|
|
|  |
 |
Gehur |
| io scrivo in maniera un po diversa
... |
04-04-2007 19:39 |
|
 |
Gehur |
.grande:maestro.
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline
Edit | Report | IP: Logged |
io scrivo in maniera un po diversa
$query = "SELECT utente,tipo_utente,profilo,bloccato FROM utente WHERE login = ";
$query .= "'";
$query .= $HTTP_POST_VARS["Username"];
$query .= "'";
pg_query($conn,$query);
|
|
04-04-2007 19:39 |
|
|
|  |
 |
Gehur |
| [QUOTE][i]Originally posted by bledar [/i]
... |
04-04-2007 19:40 |
|
 |
Gehur |
.grande:maestro.
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline
Edit | Report | IP: Logged |
Originally posted by bledar
e obligatorio?
se è riferito a me non saprei, chiedo apposta perchè non so se è un bene usarli o se è solo roba in più
|
|
04-04-2007 19:40 |
|
|
|  |
 |
bledar |
| credo sia un cosa un più , e praticamenta una mig ... |
04-04-2007 22:51 |
|
 |
bledar |
.arcimaestro.

Registered: Oct 2003
Posts: 256 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 6 Days, 3:07:56 [...]
Status: Offline
Edit | Report | IP: Logged |
credo sia un cosa un più , e praticamenta una miglioria in termini di progettazione fisica ma non credo sia cosi importante
|
|
04-04-2007 22:51 |
|
|
|  |
 |
Gehur |
| ok, allora mi sa che non li uso ... |
05-04-2007 09:32 |
|
 |
Gehur |
.grande:maestro.
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline
Edit | Report | IP: Logged |
ok, allora mi sa che non li uso
|
|
05-04-2007 09:32 |
|
|
|  |
 |
Gehur |
| ho dei problemi con la pg_lo_exoport, qualcuno mi ... |
05-04-2007 11:14 |
|
 |
Gehur |
.grande:maestro.
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline
Edit | Report | IP: Logged |
ho dei problemi con la pg_lo_exoport, qualcuno mi puo aiutare?
in pratica se come percorso gli do
$percorso = ("F:\Blog\file\\".$name); mi crea il file
se invece gli do
$percorso = ("http://localhost/file/".$name);
oppure $percorso = ("file/".$name); non crea il file
Last edited by Gehur on 05-04-2007 at 12:10
|
|
05-04-2007 11:14 |
|
|
|  |
 |
Gehur |
| dovrei aver risolto ... |
05-04-2007 13:13 |
|
 |
Gehur |
.grande:maestro.
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline
Edit | Report | IP: Logged |
dovrei aver risolto
|
|
05-04-2007 13:13 |
|
|
|  |
 |
Simeon |
| Scusate, ma lo schema E-R che consegnerete voi ha ... |
06-04-2007 16:09 |
|
 |
Simeon |
:D
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
Edit | Report | IP: Logged |
Scusate, ma lo schema E-R che consegnerete voi ha le gerarchie gia' risolte? Mi e' venuto sto dubbio guardando quello che aveva postato bledar, dove si vedevano i contenuti suddivisi nelle varie categorie. Io per esempio ho gia fatto lo schema, ma ho gia tutte le entita' specifiche riunite in quelle generiche (tipo ho utente per utenti amministratori e generici).
E cosa avete messo nella documentazione tecnica e nel manuale utente?
|
|
06-04-2007 16:09 |
|
|
|  |
 |
| All times are GMT. The time now is 02:29. |
|
|
 |
|
 |
|
|
|  |
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
|
|
|
|
|
|