Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problemik z zapytaniem
raf2001
post 11.05.2005, 13:23:22
Post #1





Grupa: Zarejestrowani
Postów: 116
Pomógł: 0
Dołączył: 14.06.2002
Skąd: Żyrardów

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


witam w moim skrypcie wywala taki błąd (wynik działania klasy):
1064 : Something is wrong in your syntax obok '(xml_date = 1115675545 ' w linii 1

żaś skrypt:
  1. <?php
  2.  class Core extends Parser{
  3.  var $row;
  4.  
  5.  //funckja pobierająca dane z bazy danych
  6. function GetData () {
  7.  $GLOBALS['sql']->query('SELECT * FROM ' . cms_config);
  8.  $this->row = $GLOBALS['sql']->fetch_array();
  9. }
  10.  
  11. //funkcja sprawdzająca czy plik z konfigiem został zmieniony
  12. function CheckConfig ($plik) {
  13.  $this->plik = $plik;
  14.  if (file_exists($this->plik)) {
  15. if (filemtime ($this->plik) != $this->row['xml_date']) {
  16.  $this->InsertData();
  17. }
  18.  } else {
  19. echo no_file_config;
  20.  }
  21. }
  22. //funkcja umieszczająca dane w bazie danych
  23. function InsertData () {
  24.  $dp = filemtime($this->plik);
  25.  $site_name = $this->xml->site->site_name;
  26.  $site_keywords = $this->xml->site->site_keywords;
  27.  $site_description = $this->xml->site->site_description;
  28.  $log_config = $this->xml->log_config;
  29.  $news_pp = $this->xml->news->news_pp;
  30.  $news_koments = $this->xml->news->news_koments;
  31.  
  32.  $GLOBALS['sql']->query(&#092;"UPDATE \" .cms_config. \" SET (xml_date = $dp
  33.  site_name = $site_name,
  34.  site_keywords = $site_keywords,
  35.  site_description = $site_description,
  36.  log_config = $log_config,
  37.  news_pp = $news_pp,
  38.  news_koments = $news_koments)&#092;");
  39.  echo data_updated;
  40. }
  41.  }
  42. ?>

błąd wypada akyrat w tym zapytaniu, co tu jest źle


--------------------
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: 5.07.2025 - 21:47