| Index
» Projekty
» phpMyEdit
» Fórum
» Order by, with a field name containing spaces |
 |
PatRaf
Založený: 26.10.2008
Príspevky: 2
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
|
|
|
|