Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]include w funkcji?, Include, funkcje
ItwashQuimim
post 31.07.2012, 21:30:27
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 31.07.2012

Ostrzeżenie: (0%)
-----


Witam.
Mam pytanie.

  1. <html>
  2. <head>
  3. <title>ItwashQuimim.ugu.pl</title>
  4. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
  5. <link rel="stylesheet" type="text/css" href="style/style.css" />
  6. </head>
  7. <body>
  8. <div id="top"></div>
  9. <div id="left"></div>
  10. <?php
  11. include ('menu.php')
  12. ?>
  13. <div id="right">
  14. <?php
  15. switch($_GET['id'])
  16. {
  17.  
  18. case 'live':
  19. live();
  20. break;
  21.  
  22.  
  23. case 'forum':
  24. forum($_GET['id']);
  25. break;
  26.  
  27.  
  28. case 'serie':
  29. serie($_GET['id']);
  30. break;
  31.  
  32.  
  33. case 'kontakt':
  34. kontakt($_GET['id']);
  35. break;
  36.  
  37.  
  38. case 'linki':
  39. linki($_GET['id']);
  40. break;
  41.  
  42. default:
  43. glowna();
  44. }
  45. function glowna()
  46. { include('glowna.php');
  47.  
  48. }
  49. ?>
  50. </div>
  51. </body>
  52. </html>


Z tego co widzę po błędach nie można w funkcji dać include. Jest jakiś inny sposób aby wczytać stronę?

Ten post edytował ItwashQuimim 31.07.2012, 21:31:16
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 13:41