How can I use a CONCAT MySQL function in a valuelist ?
Posted: Thu Dec 10, 2009 5:59 am
Hi Steve,
When I use a CONCAT or a CONCAT_WS function in my valuelist :
I have this error
Is there a solution ? It is made to have a dynamic second select box.
Jean
When I use a CONCAT or a CONCAT_WS function in my valuelist :
- Code: Select all
[sous_type_liste]
__sql__ = "SELECT sous_type_contacts.sous_type_contact_id, CONCAT_WS( "__", sous_type_contacts.sous_type_contact_name, type_contacts.type_contact_name ) AS sous_type_contact_name, type_contacts.type_contact_id
FROM sous_type_contacts
NATURAL LEFT JOIN type_contacts
ORDER BY sous_type_contacts.sous_type_contact_name"
I have this error
Error parsing /var/www/listepc/tables/envois/valuelists.ini on line 2 in /var/www/listepc/xataface-1.1.2/Dataface/ConfigTool.php on line 331
Notice: Valuelist query 'SELECT sous_type_contacts.sous_type_contact_id, CONCAT_WS( ' failed. On line 1138 of file /var/www/listepc/xataface-1.1.2/Dataface/Table.php in function printstacktrace()
Is there a solution ? It is made to have a dynamic second select box.
Jean