Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php]/[SQL] parse error
faxsilver
post
Post #1





Grupa: Zarejestrowani
Postów: 57
Pomógł: 0
Dołączył: 29.10.2006

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


witam
mam tak przerobionego cms-a
  1. <?php
  2. if($PBDSubModule == "main_file")
  3. {
  4. // Lewa strona
  5. PrintLeftSide($ModuleBrowse -> ModConfigTable["blocks_left"]);
  6.  
  7. // Wypisz nag3ówek modu3u
  8. PrintPageHeader($ModuleBrowse -> ModConfigTable["user_name"]);
  9.  
  10. if($ModuleBrowse -> ModConfigTable["can_search"] == "yes")
  11. {
  12. OpenBodyTable();
  13.  
  14. echo "<strong>".$ModuleLang["ArticlesSearch"]."</strong>";
  15. $day = date("d");
  16. $month = date("m");
  17. $UserSession -> SessionData["SesUserId"] = $this -> UserResult[0]["user_id"];
  18. $query ='SELECT * FROM pbd_users WHERE user_bd='.$day.' AND user_bm='.$month.' AND sesuser_id ='{$this -> UserResult[0]["user_id"]}'';
  19.  
  20. $result = mysql_query($query) or die('B3edne zapytanie');
  21. $num = mysql_num_rows($result);
  22.  
  23. if ($num == 0) {
  24. echo "No one is having a birthday today.";
  25. } else {
  26. for ($i = 0;$i < $num;$i++) {
  27. $name = mysql_result($result, $i, 'user_ip');
  28. echo ''. $name .'<br>';
  29. }
  30. }
  31.  
  32. CloseBodyTable();
  33.  
  34. }
  35. }
  36. ?>

i wyskakuje mi blad;

Cytat
Parse error: parse error in c:\usr\krasnal\www\pbd_2_8_0\software_upload\public_includes\pub_moddata\activefile.php on line 18

ktos ma jakies pomysly jak rozwiazac ten problem (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 24.08.2025 - 16:31