Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Uporczywy blad na stronie
andy1995
post
Post #1





Grupa: Zarejestrowani
Postów: 26
Pomógł: 0
Dołączył: 14.07.2012

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


Witam. Zaczalem pisac sobie taka stronke i dreczy mnie jeden blad. Nie wiem skad on sie wzial i nigdzie nie moge znalesc jak mu zaradzic. Zostawilem tak strone z tym bledem i wyszedlem, teraz nie mam pojecia skad on sie wzial. haha.gif

Moze ktos zerknac i wskazac gdzie jest rozwiazanie tego bledu?

  1. <?php
  2. require "mysql_config.php";
  3. connection();
  4. <html>
  5. <head>
  6. <link rel=\"shortcut icon\" href=\"images/repair.png\" />
  7. <meta http-equiv=\"Content-type\" content=\"text/html; charset=ISO-8859-2\" />
  8. <title>YourBalance - check your money anywhere you are!</title>
  9. <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\" />
  10. </head>
  11. <body style=\"margin:0;padding:0;text-align:center; background:rgb(20%,20%,20%);\">
  12. <div id=\"calastrona\" style=\"box-shadow:0px 0px 6px black; text-align:center; width:900px; margin-left:auto; margin-right:auto;\">
  13. <div style=\"margin-left:auto;margin-right:auto;\">
  14. <div style=\"border:1px solid black; position:relative; width:100%; height:200px;\">
  15. <img src=\"images/header.png\" width=\"100%\" height=\"200\" alt=\"Logo strony\">
  16. <div style=\"position:absolute; bottom:110;left:80;\">
  17. <font face=\"Verdana\"><font color=\"yellow\">YourBalance</font><font color=\"white\"> - <font size=\"2\">check your money anywhere you are!</font></font></font>
  18. </div>
  19. </div>";
  20. if(isset($_SESSION['user'])){
  21. echo "
  22. <div id=\"menu\" style=\"width:100%; color:white; text-align:left; padding:0px;\">
  23. <ul class=\"menu_poziome\">
  24. <li><a href=\"index.php\">Strona główna</a></li>
  25. <li><a href=\"logout.php\">Logout</a></li>
  26. <li><a href=\"panel.php\">Panel użytkownika</a></li>
  27. <li><a href=\"contact.php\">Kontakt</a></li>
  28. </ul>
  29. </div>";
  30. } elseif(isset($_SESSION['admin'])){
  31. echo "
  32. <div id=\"menu\" style=\"width:100%; color:white; text-align:left; padding:0px;\">
  33. <ul class=\"menu_poziome\">
  34. <li><a href=\"index.php\">Strona główna</a></li>
  35. <li><a href=\"login.php\">Login</a></li>
  36. <li><a href=\"panel.php\">Panel</a></li>
  37. <li><a href=\"manage.php\">Manage</a></li>
  38. </ul>
  39. </div>";
  40. } else {
  41. <div id=\"menu\" style=\"width:100%; color:white; text-align:left; padding:0px;\">
  42. <ul class=\"menu_poziome\">
  43. <li><a href=\"index.php\">Strona główna</a></li>
  44. <li><a href=\"login.php\">Login</a></li>
  45. <li><a href=\"register.php\">Rejestracja</a></li>
  46. <li><a href=\"contact.php\">Kontakt</a></li>
  47. </ul>
  48. </div>";
  49. }
  50. //$news = mysql_query("SELECT `news` FROM `main`");
  51. //$news = mysql_fetch_array($main_content);
  52. echo "<div id=\"tresc\" style=\"background:rgb(0%,0%,0%); height:auto; text-align:left; padding:40px; color:white;\">
  53. </br><br><font color=\"green\" size=\"4\"><b>
  54. Lorem Ipsum</b></font> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
  55. </div>
  56. <div id=\"stopka\" style=\"background:rgb(0%,0%,15%);widht:100%; height:20px; color:white;\">
  57. Copyright ˆ 2012 Damian Fryc
  58. </div>
  59. </div>
  60.  
  61. </body>
  62. </html>";
  63. ?>


Dzieki wink.gif
Go to the top of the page
+Quote Post
franki01
post
Post #2





Grupa: Zarejestrowani
Postów: 508
Pomógł: 75
Dołączył: 2.11.2005
Skąd: Bydgoszcz

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


Jeżeli pojawia się błąd, to zazwyczaj ma jakąś treść. Prosiłbym smile.gif
Go to the top of the page
+Quote Post
andy1995
post
Post #3





Grupa: Zarejestrowani
Postów: 26
Pomógł: 0
Dołączył: 14.07.2012

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


No tak, mialem go podac ale jak zaczalem pisac posta to zapomnialem biggrin.gif
Sorry

  1. Parse error: syntax error, unexpected '=' in /home/a4437294/public_html/index.php on line 54
Go to the top of the page
+Quote Post
franki01
post
Post #4





Grupa: Zarejestrowani
Postów: 508
Pomógł: 75
Dołączył: 2.11.2005
Skąd: Bydgoszcz

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


Podany kod jest jak najbardziej wolny od błędu. Porównaj date modyfikacji i rozmiar pliku Twojego i tego na serwerze. Na 99% sprawdzasz zły plik.
Go to the top of the page
+Quote Post
andy1995
post
Post #5





Grupa: Zarejestrowani
Postów: 26
Pomógł: 0
Dołączył: 14.07.2012

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


Rzeczywiscie! Teraz dopiero zobaczylem, ze WinSCP zerwal polaczenie z serwerem i sie dziwie wtf jak nic nie widze.

Dzieki wink.gif)
Go to the top of the page
+Quote Post
Aqu
post
Post #6





Grupa: Zarejestrowani
Postów: 279
Pomógł: 58
Dołączył: 14.07.2012

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


Wszystko wygląda ok, może spróbuj wywalić ten komentarz albo dać go między /* */ ?

Edit
Spóźniłem się. wink.gif

Ten post edytował Aqu 15.07.2012, 23:05:31
Go to the top of the page
+Quote Post

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 Aktualny czas: 21.08.2025 - 17:44