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. > Community > Tech > [php] problema con include
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
fabpicca
jesus robot d'acciaio

User info:
Registered: May 2002
Posts: 2166 (0.26 al dì)
Location: Pieve Emanuele
Corso: Ticom
Anno:
Time Online: 12 Days, 23:12:28 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[php] problema con include

devo includere un file in php con dei moduli di servizio per una pagina che sto sviluppando.

il codice del file content_servizi.php è il seguente

code:
<? function eliminasezione($ids){ $query="DELETE FROM CONTENUTI where id = $ids"; $result=mysql_query($query); } function creasezione($nome,$gruppo){ $query=" INSERT INTO `contenuti` (`id`, `sezione`, `titolo`, `testo`) VALUES ('', '$gruppo', '$nome', '')"; $result=mysql_query($query); } function modificasezione($vecchioNome,$nome,$gruppo){ $query="UPDATE `contenuti` SET titolo='$nome' , sezione='$gruppo' where titolo='$vecchioNome'"; $result=mysql_query($query); } ?>



sta di fatto che includendo questo file compaiono all'inizio della pagina dei caratteri misteriosi (garbage).

Come mai?

__________________
my website?|ubuntu linux|get Firefox|grazie Polonia |bagdad sour

"Come va che non ha le corna e le zampe di Caprone?" gli opposi. "Oh, Giuvà", mi disse il prete "adesso non si usa più.Satana è furbo". (I.Silone, Fontamara)
"Al giorno d'oggi non bisogna essere intelligenti, perchè la gente si offende" (un ubriacone)
"close your eyes / pay the price / for your paradise" (DM) "whatever you want to change/you'd better start changing it in your mind" (Transatlantic)

09-01-2005 18:15
Click Here to See the Profile for fabpicca Click Here to See the Blog of fabpicca Click here to Send fabpicca a Private Message Visit fabpicca's homepage! Find more posts by fabpicca Add fabpicca to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
foolish
bleak

User info:
Registered: Oct 2003
Posts: 3585 (0.45 al dì)
Location:
Corso:
Anno:
Time Online: 36 Days, 7:28:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

la pagina gira e non ti da errori di compilazione?

prova a cambiare ed a posto di include usa
require_once();

magari così funziona....

__________________
The only way to discover the limits of the possible is to go beyond them into the impossible.
Arthur C. Clarke.

09-01-2005 18:42
Click Here to See the Profile for foolish Click Here to See the Blog of foolish Click here to Send foolish a Private Message Find more posts by foolish Add foolish to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 16:47.    Post New Thread    Post A Reply
  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.094 seconds (64.49% PHP - 35.51% MySQL) con 23 query.