Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Ach ten parser :{, n33d help ;]
kukov
post
Post #1





Grupa: Zarejestrowani
Postów: 31
Pomógł: 0
Dołączył: 4.12.2004

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


Czemu pluje sie parser :

parse error, unexpected '\"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/blade/public_html/p2m/ogame/login/index.php on line 29


  1. <BODY BACKGROUND=\"../moh/images/lay_16.gif\"> 
  2. <LINK REL=\"stylesheet\" class=\"news\" HREF=\"styl.css\" TYPE=\"text/css\">
  3. <? 
  4.  
  5. $mysql_host = &#092;"\";
  6. $mysql_login = &#092;"\";
  7. $mysql_haslo = &#092;"\";
  8. $mysql_baza = &#092;"\";
  9. $mysql_tabela = &#092;"\";
  10.  
  11. // **************************************************
  12. // ********** wylogowanie i zalogowanie z ustaleniem sesji...
  13. // **************************************************
  14.  
  15. $login = $_POST[&#092;"login\"];
  16. $haslo = $_POST[&#092;"haslo\"];
  17.  
  18. if ($_GET[&#092;"login\"]==\"koniec\") { 
  19. } else if ($login<>&#092;"\" and $haslo<>\"\") {
  20. $haslo = md5($haslo);
  21. if ($baza = mysql_connect($mysql_host, $mysql_login, $mysql_haslo)) {
  22. if (mysql_select_db($mysql_baza)) {
  23. $wynik=mysql_query(&#092;"SELECT * FROM $mysql_tabela WHERE
  24. login='$login' and haslo='$haslo' );
  25. if (mysql_num_rows($wynik)==1) {
  26. $dane=mysql_fetch_array($wynik);
  27. $_SESSION[&#092;"zalogowany\"]=\"tak\";
  28. $_SESSION[&#092;"login\"]=$dane[\"login\"];
  29. $_SESSION['mail']=$dane['mail'];
  30.  }
  31. } else echo &#092;"Nie można połączyć się z bazą\";
  32. mysql_close($baza);
  33. }
  34. }
  35. ?>
  36.  
  37. <table border=\"1\" width=\"100%\">
  38. <tr><td valign=\"top\" width=\"200\">
Z gory thx ;-]
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
kukov
post
Post #2





Grupa: Zarejestrowani
Postów: 31
Pomógł: 0
Dołączył: 4.12.2004

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


parser mnie wykonczy :-( w tej lini co zaznaczylem jest przeciez if :-(

  1. <? print(&#092;" <TABLE WIDTH=\"800\" BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\">
  2. <TR>
  3. <TD COLSPAN=&#092;"5\">
  4.  <IMG SRC=&#092;"images/laylogo_01.jpg\" WIDTH=\"800\" HEIGHT=\"79\" ></TD>
  5. <TD>
  6. <IMG SRC=&#092;"images/spacer.gif\" WIDTH=\"1\" HEIGHT=\"79\"></TD>
  7. </TR>
  8. <TR>
  9. <TD>
  10. <IMG SRC=&#092;"images/laylogo_02.jpg\" WIDTH=\"124\" HEIGHT=\"30\"></TD>
  11. <TD align=&#092;"middle\" COLSPAN=\"2\" width=\"422\" height=\"30\" background=\"images/laylogo_03.jpg\">
  12. <span style=&#092;"font-size: 12\">Oni uwierzyli w Ciebie, teraz Ty uwierz w nich...</span></TD>
  13. <TD COLSPAN=&#092;"2\" ROWSPAN=\"2\" WIDTH=\"254\" HEIGHT=\"108\" background=\"images/laylogo_04.jpg\">
  14. </TD>
  15. <TD>
  16. <IMG SRC=&#092;"images/spacer.gif\" WIDTH=\"1\" HEIGHT=\"30\" ></TD>
  17. </TR>
  18. <TR>
  19. <TD COLSPAN=&#092;"2\" ROWSPAN=\"2\" width=\"135\" height=\"161\" background=\"images/laylogo_05.jpg\">
  20.  <span style=&#092;"font-size: 11\">
  21.  
  22.  
  23. if ($_SESSION[&#092;"zalogowany\"]==\"tak\") { // TO TA LINIA ! - > Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /index.php 
  24.  
  25. header (&#092;"location: index2.php\");
  26.  
  27.  echo  $_SESSION[&#092;"cos\"]; }
  28.  
  29.  &nbsp;&nbsp;&nbsp;&nbsp;<a href=&#092;"index.php\">- Strona główna</a><br />
  30.  &nbsp;&nbsp;&nbsp;&nbsp;<a href=&#092;"\">- Strona główna</a><br />
  31.  &nbsp;&nbsp;&nbsp;&nbsp;<a href=&#092;"\">- Strona główna</a><br />
  32.  &nbsp;&nbsp;&nbsp;&nbsp;<a href=&#092;"\">- Strona główna</a><br />
  33.  &nbsp;&nbsp;&nbsp;&nbsp;<a href=&#092;"\">- Strona główna</a><br />
  34.  &nbsp;&nbsp;&nbsp;&nbsp;<a href=&#092;"\">- Strona główna</a><br />
  35.  &nbsp;&nbsp;&nbsp;&nbsp;<a href=&#092;"\">- Strona główna</a><br />
  36.  &nbsp;&nbsp;&nbsp;&nbsp;<a href=&#092;"\">- Strona główna</a><br />
  37.  
  38.  
  39.  </span></TD>
  40. <TD ROWSPAN=&#092;"5\" WIDTH=\"411\" HEIGHT=\"481\">
  41. <iframe vspace=&#092;"0\" hspace=\"0\" noresize=\"yes\" scrolling=\"auto\" src=\"content.html\" marginwidth=\"0\" marginheight=\"0\" WIDTH=\"411\" HEIGHT=\"481\" frameborder=\"0\"></iframe>
  42. </TD>
  43. <TD>
  44. <IMG SRC=&#092;"images/spacer.gif\" WIDTH=\"1\" HEIGHT=\"78\" ALT=\"\"></TD>
  45. </TR>
  46. <TR>
  47. <TD ROWSPAN=&#092;"4\">
  48. <IMG SRC=&#092;"images/laylogo_07.jpg\" WIDTH=\"80\" HEIGHT=\"403\" ALT=\"\"></TD>
  49. <TD valign=&#092;"middle\" align=\"middle\" ROWSPAN=\"2\" width=\"174\" height=\"236\" background=\"images/laylogo_08.jpg\" >
  50. <form action=&#092;"index.php\" method=\"post\">
  51. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input size=10 type=&#092;"text\" name=\"login\" ><br>
  52.  
  53.  
  54.  
  55. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input size=10 type=&#092;"password\" name=\"haslo\" ><br >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  56. <input type=&#092;"submit\" value=\"zaloguj\" ><BR>
  57. <align=&#092;"center\"></align>
  58.  
  59. <span style=&#092;"font-size: 10\"><a href=\"rejestracja.php?opcja=przypomnij\">Zapomniałeœ hasła?</a><a href=\"rejestracja.php\"> Nie masz konta?</a></span>
  60.  </TD>
  61. <TD>
  62. <IMG SRC=&#092;"images/spacer.gif\" WIDTH=\"1\" HEIGHT=\"83\" ALT=\"\"></TD>
  63. </TR>
  64. <TR>
  65. <TD COLSPAN=&#092;"2\" ROWSPAN=\"2\">
  66. <IMG SRC=&#092;"images/laylogo_09.jpg\" WIDTH=\"135\" HEIGHT=\"161\" ALT=\"\"></TD>
  67. <TD>
  68. <IMG SRC=&#092;"images/spacer.gif\" WIDTH=\"1\" HEIGHT=\"153\" ALT=\"\"></TD>
  69. </TR>
  70. <TR>
  71. <TD ROWSPAN=&#092;"2\">
  72. <IMG SRC=&#092;"images/laylogo_10.jpg\" WIDTH=\"174\" HEIGHT=\"167\" ALT=\"\"></TD>
  73. <TD>
  74. <IMG SRC=&#092;"images/spacer.gif\" WIDTH=\"1\" HEIGHT=\"8\" ALT=\"\"></TD>
  75. </TR>
  76. <TR>
  77. <TD COLSPAN=&#092;"2\">
  78. <IMG SRC=&#092;"images/laylogo_11.jpg\" WIDTH=\"135\" HEIGHT=\"159\" ALT=\"\"></TD>
  79. <TD>
  80. <IMG SRC=&#092;"images/spacer.gif\" WIDTH=\"1\" HEIGHT=\"159\" ALT=\"\"></TD>
  81. </TR>
  82. <TR>
  83. <TD>
  84. <IMG SRC=&#092;"images/spacer.gif\" WIDTH=\"124\" HEIGHT=\"1\" ALT=\"\"></TD>
  85. <TD>
  86. <IMG SRC=&#092;"images/spacer.gif\" WIDTH=\"11\" HEIGHT=\"1\" ALT=\"\"></TD>
  87. <TD>
  88. <IMG SRC=&#092;"images/spacer.gif\" WIDTH=\"411\" HEIGHT=\"1\" ALT=\"\"></TD>
  89. <TD>
  90. <IMG SRC=&#092;"images/spacer.gif\" WIDTH=\"80\" HEIGHT=\"1\" ALT=\"\"></TD>
  91. <TD>
  92. <IMG SRC=&#092;"images/spacer.gif\" WIDTH=\"174\" HEIGHT=\"1\" ALT=\"\"></TD>
  93. <TD></TD>
  94. </TR>
  95. </TABLE></center> &#092;"); ?>
Go to the top of the page
+Quote Post

Posty w temacie


Closed TopicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 9.10.2025 - 16:29