![]() |
Show 150 posts per page |
.dsy:it. (http://www.dsy.it/forum/)
- Tech (http://www.dsy.it/forum/forumdisplay.php?forumid=189)
-- [php] problema con include (http://www.dsy.it/forum/showthread.php?threadid=16364)
[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); } ?>
__________________
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)
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.
| All times are GMT. The time now is 21:35. | Show all 2 posts from this thread on one page |
Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.