Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Something is wrong in your syntax obok
potreb
post
Post #1





Grupa: Zarejestrowani
Postów: 1 568
Pomógł: 192
Dołączył: 7.03.2005
Skąd: Warszawa

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


Witam. Pokazuje mi sie
Kod
błąd i kur.. bladSomething is wrong in your syntax obok '' w linii
1
i nie wiem co jest nie tak w tym kodzie proszę o pomoc:
  1. <?php
  2.  
  3. function delete_comments($id){
  4. global $DBhost,$DBuser, $DBpass; 
  5. mysql_connect($DBhost,$DBuser, $DBpass); 
  6. mysql_select_db(&#092;"$DBname\"); 
  7. mysql_query(&#092;"DELETE FROM comments WHERE id=$id\"); 
  8. $sql = &#092;"UPDATE articles SET comment_counter=comment_counter-1 WHERE id=$comment[id]\";
  9. $sql1 = &#092;"SELECT * FROM `comments` WHERE `id`=$id\"; // wyciąga komentarze z bazy 
  10. mysql_query($sql)or die(&#092;"i kur.. blad\".mysql_error()); 
  11. mysql_query($sql1)or die(&#092;"i kur.. mac blad\".mysql_error()); 
  12. echo &#092;"<link rel=\"stylesheet\" href=\"styles.css\" type=\"text/css\">\"; 
  13. echo &#092;"<br><span class=\"text\"><center>\"._COMDELETE.\".<br></center></span>\"; 
  14. } 
  15. ?>
Już się z tym kodem trochę męczę! (IMG:http://forum.php.pl/style_emoticons/default/mad.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: 25.08.2025 - 20:00