Author Topic: Pomoc z MySQL  (Read 2023 times)

0 Members i 1 Go¶æ przegl±da ten w±tek.

Enter_the_Chicken

  • Guest
Pomoc z MySQL
« on: 2009-05-06, 22:23:07 »
Nie wiem gdzie to podpi±æ wiêc nowy w±tek.

Mam taki oto problem i jest to chyba najdziwniejszy b³±d z jakim siê w ¿yciu spotka³em.

Korzystam z CMS Drupala i modu³u views. Rzecz wygl±da nastêpuj±co. Mo¿na tam ustawiæ filtr rekordów wyci±ganych z bazy i jednym z nich jest pole:

Quote
Wyci±gnij z bazy u¿ytkowników którzy w swoim adresie, polu region podali: centre LUB limousin LUB auvergne LUB bourgogne


No i teraz motyw, dopóki nie ma "bourgogne" wszystko dzia³a. Do³o¿ê "bourgogne" i wywala taki oto b³±d:

Quote
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'node'ourgogne%'))) )' at line 1 query: SELECT count( DISTINCT(node.nid)) FROM node node LEFT JOIN users_roles users_roles ON node.uid = users_roles.uid INNER JOIN users users ON node.uid = users.uid LEFT JOIN profile_values profile_regionlive ON users.uid = profile_regionlive.uid AND profile_regionlive.fid = '11' LEFT JOIN profile_values profile_nom ON users.uid = profile_nom.uid AND profile_nom.fid = '1' LEFT JOIN profile_values profile_prenom ON users.uid = profile_prenom.uid AND profile_prenom.fid = '2' LEFT JOIN profile_values profile_enddateevs ON users.uid = profile_enddateevs.uid AND profile_enddateevs.fid = '19' LEFT JOIN profile_values profile_cooriginevs ON users.uid = profile_cooriginevs.uid AND profile_cooriginevs.fid = '37' LEFT JOIN profile_values profile_coevs ON users.uid = profile_coevs.u in /home/sites/sve-connexion.fr/public_html/includes/database.mysql.inc on line 173.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'node'ourgogne%'))) ) ORDER BY users_name ASC LIMIT 0, 100' at line 1 query: SELECT DISTINCT(node.nid), users.name AS users_name, users.uid AS users_uid, profile_nom.value AS profile_nom_value, profile_prenom.value AS profile_prenom_value, profile_enddateevs.value AS profile_enddateevs_value, profile_cooriginevs.value AS profile_cooriginevs_value, profile_coevs.value AS profile_coevs_value, profile_city.value AS profile_city_value, profile_jobstatus.value AS profile_jobstatus_value, profile_whoareyou.value AS profile_whoareyou_value FROM node node LEFT JOIN users_roles users_roles ON node.uid = users_roles.uid INNER JOIN users users ON node.uid = users.uid LEFT JOIN profile_values profile_regionlive ON users.uid = profile_regionlive.uid AND profile_regionlive.fid = '11' LEFT JOIN profile_values profile_nom ON users.uid = profile_nom.uid AND p in /home/sites/sve-connexion.fr/public_html/includes/database.mysql.inc on line 173.



zamienie "bourgogne" na "liurgogne" i dzia³a. Mojemu profilowi przypiszê "liu..." i poka¿e mnie na li¶cie, zmieniê na "bou" i nie pokazuje - czyli dzia³a. Ale jak zmienie ustawienia w filtrze z "liu.." na "bou..." to nie zale¿nie od tego czy jest taki u¿ytkownik czy go nie ma - wywala b³±d jak powy¿ej.

I jak wydaæ w b³êdzie pokazuje "ourgogne". Tak jakby zjada³o pierwsz± literê ?

Przydatne info:
Quote
MySQL database 5.0.77
PHP 4.4.9
Unicode library PHP Mbstring Extension
Web server Apache/2

Kto¶ ma jaki¶ pomys³ OCB, bo ja ju¿ nie mogê. Mogê udostêpniæ konto admina serwisu je¶li to potrzebne.

deluminathor

  • Mourner
  • Global Moderathor
  • *
  • Posts: 2328
  • Karma: +0/-0
  • Gender: Male
  • När vintern kommer...
    • Progressive-Bolt
Odp: Pomoc z MySQL
« Reply #1 on: 2009-05-06, 22:45:57 »
Ej, bez przesady. To jest forum Opeth i tematów oko³omuzycznych, a nie spo³eczno¶æ informatyczna. Je¶li szukasz pomocy z tak w±skiej, specjalistycznej dziedziny [co innego pytania o klienta Jabbera a, co innego o konfiguracjê MySQL, b±d¼my rozs±dni...], to s± od tego odpowiednie fora, grupy dyskusyjne, kana³y na IRCu itp.

Pomoc Drupala
Dokumentacja MySQL
I ponad wszystko: :google:

Je¿eli nikt stamt±d pomóc nie potrafi, to tym bardziej tutaj. Trzeba dobieraæ narzêdzia i ¶rodki do celów, nie odwrotnie. Zamykam. Ewentualnie jaki¶ admin zdecyduje kto przesadza.