Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Order by, with a field name containing spaces

phpMyEdit General     Order by, with a field name containing spaces
Odoslať novú tému   Odpovedať na tému    
 
PatRaf     Založený: 26.10.2008   Príspevky: 2  
Príspevok Zaslal: 2008-10-26 12:26
Návrat hore  Odpovedať s citátom     

Problem: in a ['values']['orderby'], I am using a field name containing spaces.
The routine set_values_from_table in phpMyEdit.class.php does not enclose the field name with $sd and $ed.
Hence an SQL error:

MySQL query at line 487
SELECT DISTINCT `Comptes-rendus-PH`.`Numéro compte-rendu` FROM `TESTSITAVOBE`.`Comptes-rendus-PH` ORDER BY Date de saisie
--------------------------------------------------------------------------------

MySQL error 1064

Workaround: enclose the field name in `` in the orderby clause:

['values']['orderby'] = '`field name`';

Second bug: impossible to file a bug report (memory allocated etc ...)

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov